ianmcook commented on issue #41684:
URL: https://github.com/apache/arrow/issues/41684#issuecomment-2115925508

   Thanks. I agree that adding a `mask` argument to 
[`pa.MapArray.from_arrays()`](https://arrow.apache.org/docs/python/generated/pyarrow.MapArray.html#pyarrow.MapArray.from_arrays)
 would be ideal.
   
   Then in the above example we could do
   ```py
   new = pa.MapArray.from_arrays(
     offsets=m.offsets,
     keys=m.keys,
     items=m.items,
     type=m.type,
     mask=m.is_null()
   )
   ```
   
   This would help solve the issue in 
[SPARK-48302](https://issues.apache.org/jira/browse/SPARK-48302) which arose in 
https://github.com/apache/spark/pull/46529.


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

Reply via email to