RussellSpitzer commented on issue #11094:
URL: https://github.com/apache/iceberg/issues/11094#issuecomment-2338247842

   > @eric-maynard I have other examples where I do what you suggest. If I move 
this inside `start_streaming_query` the builder will simply return the existing 
spark session `getOrCreate` it will not create a new spark application.
   > 
   > When I do so I see the same behavior.
   
   You need to create a new session object, not get the active one like so:
   ```scala
   scala> spark.newSession()
   res0: org.apache.spark.sql.SparkSession = 
org.apache.spark.sql.SparkSession@5d643896
   ```


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to