HyukjinKwon commented on a change in pull request #34509:
URL: https://github.com/apache/spark/pull/34509#discussion_r763530611



##########
File path: python/pyspark/sql/pandas/serializers.py
##########
@@ -215,7 +215,10 @@ def _create_batch(self, series):
         series = ((s, None) if not isinstance(s, (list, tuple)) else s for s 
in series)
 
         def create_array(s, t):
-            mask = s.isnull()
+            if hasattr(s.values, "__arrow_array__"):

Review comment:
       this actually reminds me of https://github.com/apache/spark/pull/28743 
how is it related to each other?




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