aitorniz opened a new issue, #1493:
URL: https://github.com/apache/sedona/issues/1493

   ## Expected behavior
   Run the piece of example-code i gave to the spark-shell
   ## Actual behavior
   Raise the error below:
   ```
   scala>   val sedona = SedonaContext.create(config)
   <console>:46: error: overloaded method value create with alternatives:
     (sparkSession: 
org.apache.spark.sql.SparkSession)org.apache.spark.sql.SparkSession <and>
     (sqlContext: 
org.apache.spark.sql.SQLContext)org.apache.spark.sql.SQLContext
     cannot be applied to (org.apache.spark.sql.SparkSession.Builder)
            val sedona = SedonaContext.create(config)
   ```
   ## Steps to reproduce the problem
   1. Stay in the Sedona examples directory
   2. Open a spark-shell
   3. Copy and paste a piece of Sedona examples main class's code like:
   ```
   val config = SedonaContext.builder().appName("SedonaSQL-demo")
       .master("local[*]") // Please comment out this when use it on a cluster
       .config("spark.kryo.registrator", 
classOf[SedonaVizKryoRegistrator].getName)
       .getOrCreate()
     val sedona = SedonaContext.create(config)
   ```
   5. Run the piece of code
   
   ## Settings
   
   Sedona version = 1.6.0
   
   Apache Spark version = 3.4.3
   
   Apache Flink version = Not used here
   
   API type = Scala
   
   Scala version = 2.11
   
   JRE version = 1.11
   
   Python version = 3.9.12
   
   Environment = Standalone
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to