Using spark jars using databricks-connect>=13.0

Lazloo
New Contributor III

With the newest version of databricks-connect, I cannot configure the extra jars I want to use. In the older version, I did that via

spark = SparkSession.builder.appName('DataFrame').\
        config('spark.jars.packages','org.apache.spark:spark-avro_2.12:3.3.0').getOrCreate()

How can I configure this with databricks-connect>=13.0?

ayush19
New Contributor III

Hello, I have a question on this. I have a jar file which is installed on my Databricks cluster. Do you happen to know how can I access the spark session running in databricks within my code (which later turns into jar)

I have tried using SparkSession.active and SparkSession.getActiveSession but I get error that these methods are not supported.