uros-b commented on code in PR #56459:
URL: https://github.com/apache/spark/pull/56459#discussion_r3467663194


##########
python/pyspark/sql/connect/streaming/readwriter.py:
##########
@@ -452,6 +453,11 @@ def xml(
     xml.__doc__ = PySparkDataStreamReader.xml.__doc__
 
     def table(self, tableName: str) -> "DataFrame":
+        if self._schema:
+            warnings.warn(

Review Comment:
   Connect Python raises a Python-level warnings.warn, but Classic Python 
surfaces nothing Python-side - it relies on the JVM log. A classic-PySpark user 
therefore won't see a Python warning. I'm not sure how we handle warnings in 
similar scenarios, but ideally I think classic PySpark would also warnings.warn 
for parity?



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