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


##########
python/pyspark/sql/datasource.py:
##########
@@ -145,6 +145,44 @@ def writer(self, schema: StructType, saveMode: str) -> 
"DataSourceWriter":
         raise NotImplementedError
 
 
+class InputPartition:
+    """
+    A base class representing an input partition returned by the `partitions()`
+    method of `DataSourceReader`.
+
+    .. versionadded: 4.0.0
+
+    Notes
+    -----
+    This class must be serializable.

Review Comment:
   ```suggestion
       This class must be picklable.
   ```



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