raulcd commented on issue #43863:
URL: https://github.com/apache/arrow/issues/43863#issuecomment-2315298250

   Are you suggesting something like this:
   ```diff
   diff --git a/python/pyarrow/dataset.py b/python/pyarrow/dataset.py
   index 1efbfe1..9afb3fe 100644
   --- a/python/pyarrow/dataset.py
   +++ b/python/pyarrow/dataset.py
   @@ -118,7 +118,7 @@ def __getattr__(name):
        )
    
    
   -def partitioning(schema=None, field_names=None, flavor=None,
   +def partitioning(schema=None, field_names=None, flavor="directory",
                     dictionaries=None):
        """
        Specify a partitioning scheme.
   @@ -220,7 +220,7 @@ def partitioning(schema=None, field_names=None, 
flavor=None,
    
        >>> part = ds.partitioning(flavor="hive")
        """
   -    if flavor is None:
   +    if flavor is None or flavor == "directory":
            # default flavor
            if schema is not None:
                if field_names is not None:
   ```
   Plus the other related functionality changes.
   Being explicit sounds sensible to me, CC  @jorisvandenbossche 


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