smorken opened a new issue, #42160:
URL: https://github.com/apache/arrow/issues/42160
### Describe the bug, including details regarding any error messages,
version, and platform.
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
version: `pyarrow==16.1.0`
the following code produced an unexpected empty table result:
```python
import pyarrow as pa
import pyarrow.parquet as pq
table = pa.table(
{
"_year": [2020, 2022, 2021, 2022, 2019, 2021],
"n_legs": [2, 2, 4, 4, 5, 100],
"animal": ["Flamingo", "Parrot", "Dog", "Horse", "Brittle stars",
"Centipede"],
}
)
pq.write_to_dataset(table, root_path="dataset_v2", partition_cols=["_year"])
dataset = pq.ParquetDataset("dataset_v2/")
print(dataset.read())
```
printed result:
```
pyarrow.Table
----
```
I'm a little unclear on hive partitioning partitioning naming conventions
and rules, and I haven't been able to find any documentation that would say
leading underscores should not work.
I would have expected an error on the dataset creation, if leading
underscores are not supported.
### Component(s)
Parquet
--
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]