anmyachev opened a new issue, #35855:
URL: https://github.com/apache/arrow/issues/35855

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   An interesting detail is that after reading the same file through pandas, 
the result of reading with pyarrow becomes correct.
   
   ```python
   import pandas
   import pyarrow.parquet
   
   path = "test1111.parquet"
   print(pyarrow.parquet.read_table(path, 
use_pandas_metadata=True)[:2].to_pandas().index) <- Index
   print("##############################")
   print(pandas.read_parquet(path, engine="pyarrow")[:2].index)
   print("##############################")
   print(pyarrow.parquet.read_table(path, 
use_pandas_metadata=True)[:2].to_pandas().index) <- PeriodIndex
   ```
   
   Deps:
   ```bash
   pyarrow==12.0.0
   pandas==2.0.2
   python=3.9
   ```
   
   Output:
   ```bash
   ----For pyarrow==12.0.0:
   Index([17167, 17168], dtype='int64', name='idx_periodrange')
   ##############################
   PeriodIndex(['2017-01-01', '2017-01-02'], dtype='period[D]', 
name='idx_periodrange')
   ##############################
   PeriodIndex(['2017-01-01', '2017-01-02'], dtype='period[D]', 
name='idx_periodrange')
   ```
   
   For a reproducer, this file must first be unzipped.
   [test1111.zip](https://github.com/apache/arrow/files/11618246/test1111.zip)
   
   
   
   ### 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]

Reply via email to