chaoqin-li1123 commented on code in PR #45977: URL: https://github.com/apache/spark/pull/45977#discussion_r1563130456
########## python/pyspark/sql/streaming/python_streaming_source_runner.py: ########## @@ -76,6 +97,19 @@ def commit_func(reader: DataSourceStreamReader, infile: IO, outfile: IO) -> None write_int(0, outfile) +def send_batch_func( + rows: Iterator[Tuple], outfile: IO, schema: StructType, data_source: DataSource +) -> None: + batches = list(records_to_arrow_batches(rows, 1000, schema, data_source)) Review Comment: Makes sense. Propagate the config from JVM now. -- 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