allisonwang-db commented on code in PR #43360:
URL: https://github.com/apache/spark/pull/43360#discussion_r1361274421
##########
python/pyspark/sql/readwriter.py:
##########
@@ -303,6 +329,50 @@ def load(
if schema is not None:
self.schema(schema)
self.options(**options)
+
+ # Load a Python data source
+ if isinstance(self._format, Callable):
Review Comment:
Actually, the `self._format` here is not an instance of `DataSource`, it's
the DataSource class (`Type[DataSource]`). Maybe I can just check if it's
instance of `Type`.
--
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]