You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/02/21 01:53:30 UTC

[GitHub] [spark] dongjoon-hyun commented on a change in pull request #31600: [SPARK-34482][SS] Correct the active SparkSession for streaming query

dongjoon-hyun commented on a change in pull request #31600:
URL: https://github.com/apache/spark/pull/31600#discussion_r579735375



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala
##########
@@ -323,7 +323,7 @@ abstract class StreamExecution(
       startLatch.countDown()
 
       // While active, repeatedly attempt to run batches.
-      SparkSession.setActiveSession(sparkSession)
+      SparkSession.setActiveSession(sparkSessionForStream)

Review comment:
       Can we have a test case by using your PR description, @Ngone51 ?




----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org