shner-elmo opened a new issue, #37953: URL: https://github.com/apache/arrow/issues/37953
### Describe the bug, including details regarding any error messages, version, and platform. The bug: The S3 path `s3://bucket/.../dir/domain=beauty.thewom.it/year=2021/month=10/2021-10-06.parquet` gets saved as: `data/year=year%3D2021/month=month%3D10/part-0.parquet`  The code: ```py import pyarrow.fs as fs import pyarrow.dataset as ds import pyarrow as pa schema = pa.schema([ pa.field('year', pa.string()), pa.field('month', pa.string()), pa.field(..., ...), ]) dataset = ds.dataset( source='path/to/s3/directory/', filesystem=fs.S3FileSystem(region=...), format='parquet', partitioning=ds.partitioning(field_names=['year', 'month']), ) ds.write_dataset( data=dataset, format='parquet', base_dir='data', schema=schema, partitioning=['year', 'month'], partitioning_flavor='hive', existing_data_behavior='overwrite_or_ignore', ) ``` Not sure whats the issue here, perhaps it has something to do with not being able to find the `date` column which is stored as the filename (`{date}.parquet`)? ### Component(s) Parquet, 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]
