cloud-fan commented on a change in pull request #23619: [SPARK-26695][SQL] data
source v2 API refactor - continuous read
URL: https://github.com/apache/spark/pull/23619#discussion_r250042297
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/TextSocketMicroBatchStream.scala
##########
@@ -124,10 +124,6 @@ class TextSocketMicroBatchStream(host: String, port: Int,
options: DataSourceOpt
batches.slice(sliceStart, sliceEnd)
}
- assert(SparkSession.getActiveSession.isDefined)
- val spark = SparkSession.getActiveSession.get
- val numPartitions = spark.sparkContext.defaultParallelism
Review comment:
https://github.com/apache/spark/pull/23619/files#r250041943
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]