gengliangwang commented on code in PR #47340: URL: https://github.com/apache/spark/pull/47340#discussion_r1678540590
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala: ########## @@ -287,6 +290,11 @@ abstract class StreamExecution( sparkSession.sparkContext.setJobGroup(runId.toString, getBatchDescriptionString, interruptOnCancel = true) sparkSession.sparkContext.setLocalProperty(StreamExecution.QUERY_ID_KEY, id.toString) + loggingThreadContext = CloseableThreadContext.putAll( + Map( + StreamExecution.QUERY_ID_KEY -> id.toString, Review Comment: Shall we use/create keys from LogKey.scala as well? We can have `streaming_query_id`(or just query_id) and `streaming_run_id`. It would be great if we can keep the variable names consistent. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org