HyukjinKwon commented on code in PR #46920:
URL: https://github.com/apache/spark/pull/46920#discussion_r1633642183


##########
python/pyspark/sql/connect/streaming/readwriter.py:
##########
@@ -446,6 +446,11 @@ def partitionBy(self, *cols: str) -> "DataStreamWriter":  
# type: ignore[misc]
     partitionBy.__doc__ = PySparkDataStreamWriter.partitionBy.__doc__
 
     def queryName(self, queryName: str) -> "DataStreamWriter":
+        if not queryName or type(queryName) != str or len(queryName.strip()) 
== 0:

Review Comment:
   should probably use `not isinstance(queryName, str)`



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