chaoqin-li1123 commented on code in PR #45023:
URL: https://github.com/apache/spark/pull/45023#discussion_r1482219079
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/python/PythonScan.scala:
##########
@@ -45,13 +63,50 @@ class PythonScan(
new PythonPartitionReaderFactory(
ds.source, readerFunc, outputSchema, jobArtifactUUID)
}
+}
- override def toBatch: Batch = this
+case class PythonStreamingSourceOffset(json: String) extends Offset
- override def description: String = "(Python)"
+case class PythonStreamingSourcePartition(partition: Array[Byte]) extends
InputPartition
- override def readSchema(): StructType = outputSchema
+class PythonMicroBatchStream(
Review Comment:
Moved to a separate file.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]