jorisvandenbossche opened a new pull request, #36550:
URL: https://github.com/apache/arrow/pull/36550

   ### Rationale for this change
   
   https://github.com/apache/arrow/pull/36462 already added support for 
pickling Partitioning objects, but not yet the PartitioningFactory objects.
   
   The problem for PartitioningFactory is that we currently don't really expose 
the full class hierarchy in python, just the base class PartitioningFactory. We 
also don't expose creating those factory objects, except through the `discover` 
methods of the Partitioning classes. 
   I think it would be nice to keep this minimal binding, but that means if we 
want to make them serializable with pickle, we need another way to do that (and 
if we don't want to add custom code for serialization on the C++ side). 
   
   In this PR, I went for the route of essentially storing the constructor (the 
discover static method) and the arguments that were passed to the constructor, 
on the factory object, so we can use this info for pickling. Not the nicest 
code, but the simplest solution I could think of.
   
   
   ### Are these changes tested?
   
   Yes


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