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_r250041943
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/TextSocketSourceProvider.scala
 ##########
 @@ -58,22 +57,16 @@ class TextSocketSourceProvider extends DataSourceV2
     new TextSocketTable(
       options.get("host").get,
       options.getInt("port", -1),
+      options.getInt("numPartitions", 
SparkSession.active.sparkContext.defaultParallelism),
 
 Review comment:
   this is a small fix. The 
[test](https://github.com/apache/spark/pull/23619/files#diff-fa0715a30e2a82ca2c4297024e9441d8L298)
 needs to specify the `numPartitions`, but the socket source always use the 
spark default parallelism. Here I make `numPartitions` configurable.

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

Reply via email to