HeartSaVioR commented on code in PR #54085:
URL: https://github.com/apache/spark/pull/54085#discussion_r2771585547


##########
python/pyspark/sql/streaming/python_streaming_source_runner.py:
##########
@@ -116,6 +138,77 @@ def send_batch_func(
         write_int(EMPTY_PYARROW_RECORD_BATCHES, outfile)
 
 
+def check_support_func(reader: DataSourceStreamReader, outfile: IO) -> None:
+    support_flags = 0
+    if isinstance(reader, _SimpleStreamReaderWrapper):

Review Comment:
   mixin is public and yes we will have to support this in future. Though it's 
safer to not revisit the direction of the API design as a whole, despite we may 
have to pay the cost of inlining it when we finally decide to do so.



##########
python/pyspark/sql/streaming/python_streaming_source_runner.py:
##########
@@ -116,6 +138,77 @@ def send_batch_func(
         write_int(EMPTY_PYARROW_RECORD_BATCHES, outfile)
 
 
+def check_support_func(reader: DataSourceStreamReader, outfile: IO) -> None:
+    support_flags = 0
+    if isinstance(reader, _SimpleStreamReaderWrapper):

Review Comment:
   mixin is public and yes we will have to support this in future. Though it's 
safer to not revisit the direction of the API design as a whole at this point, 
despite we may have to pay the cost of inlining it when we finally decide to do 
so.



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

Reply via email to