davlee1972 commented on issue #38485:
URL: https://github.com/apache/arrow/issues/38485#issuecomment-2007761358

   One more oddity..
   
   To use directory partitioning you have to omit @flavor or pass in 
@flavor=None.
   
   Passing in @flavor = "directory" produces an error..
   
   ```
   >>> part = ds.partitioning(pa.schema([("yyyymmdd", pa.int32())]), 
flavor="directory")
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "C:\Users\leed\Anaconda3\lib\site-packages\pyarrow\dataset.py", line 
277, in partitioning
       raise ValueError("Unsupported flavor")
   ValueError: Unsupported flavor
   ```
   
   ```
   >>> part = ds.partitioning(pa.schema([("yyyymmdd", pa.int32())]), 
flavor=None)
   >>> part
   <pyarrow._dataset.DirectoryPartitioning object at 0x000001FCFA0054E0>
   ```
   


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