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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Since pyarrow v19, this file cannot be read anymore: 
   
   
[test.parquet.gz](https://github.com/user-attachments/files/18438726/test.parquet.gz)
 (decompress it with `gunzip`; I had to compress it for Github to accept the 
upload)
   
   with pyarrow 18.1.0:
   
   ```
   $ python3                     
   Python 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import pyarrow.dataset
   >>> dataset = pyarrow.dataset.dataset("test.parquet", format="parquet")
   >>> dataset.to_table().to_pylist()
   [{'id': 0, 'type': 'ori', 'sha1_git': 
b'\x8fP\xd3\xf6\x0e\xae7\r\xdb\xf8\\\x86!\x9cU\x10\x8a5\x01e'}, {'id': 2, 
'type': 'ori', 'sha1_git': b'\x83@O\x99Q\x18\xbd%wOJ\xc1D"\xa8\xf1u\xe7\xa0T'}, 
{'id': 3, 'type': 'rev', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t'},
 {'id': 4, 'type': 'rel', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10'},
 {'id': 6, 'type': 'rev', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'},
 {'id': 7, 'type': 'dir', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02'},
 {'id': 8, 'type': 'cnt', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05'},
 {'id': 9, 'type': 'dir', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06'},
 {'id': 10, 'type': 'cnt', 'sha1_git': b'\x00\x00\x00\x00\x00\x00\x0
 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04'}, {'id': 11, 'type': 
'cnt', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'},
 {'id': 12, 'type': 'dir', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08'},
 {'id': 13, 'type': 'cnt', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07'},
 {'id': 14, 'type': 'dir', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12'},
 {'id': 15, 'type': 'cnt', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11'},
 {'id': 16, 'type': 'rev', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13'},
 {'id': 17, 'type': 'dir', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x16'},
 {'id': 18, 'type': 'cnt', 'sha1_git': b'\x00\x00\x00\x00\x00\x00\x00\x00
 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15'}, {'id': 19, 'type': 'rel', 
'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00!'},
 {'id': 20, 'type': 'rev', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18'},
 {'id': 21, 'type': 'rel', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19'},
 {'id': 22, 'type': 'dir', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17'},
 {'id': 23, 'type': 'cnt', 'sha1_git': 
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'}]
   >>> 
   ```
   
   with pyarrow 19.0.0:
   
   ```
   $ python3                     
   Python 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import pyarrow.dataset
   >>> dataset = pyarrow.dataset.dataset("test.parquet", format="parquet")
   >>> dataset.to_table().to_pylist()
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "pyarrow/_dataset.pyx", line 574, in pyarrow._dataset.Dataset.to_table
     File "pyarrow/_dataset.pyx", line 3865, in 
pyarrow._dataset.Scanner.to_table
     File "pyarrow/error.pxi", line 155, in 
pyarrow.lib.pyarrow_internal_check_status
     File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
   OSError: Repetition level histogram size mismatch
   ```
   
   ### 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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to