rjzamora opened a new issue, #34884:
URL: https://github.com/apache/arrow/issues/34884
### Describe the bug, including details regarding any error messages,
version, and platform.
I would like to be able to serialize a dictionary of
`pyarrow.dataset.dataset` key-word arguments (for parallel processing in Dask).
However, it is not possible to do this when one of those arguments contains a
`Partitioning`/`PartitioningFactory` object, because those objects cannot be
serialized in Python.
**Reproducer**:
```python
In [1]: import pyarrow.dataset as ds
...: import pickle
...:
...: partitioning = ds.partitioning(flavor="hive")
...: pickle.dumps(partitioning)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[1], line 5
2 import pickle
4 partitioning = ds.partitioning(flavor="hive")
----> 5 pickle.dumps(partitioning)
File stringsource:2, in
pyarrow._dataset.PartitioningFactory.__reduce_cython__()
TypeError: self.factory,self.wrapped cannot be converted to a Python object
for pickling
```
### Component(s)
Python
--
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]