You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
I receive the following error running the code below.
Traceback (most recent call last):
File "/home/ed/dev/nested_test/nested_test.py", line 22, in <module>
df = pq.read_table("out.parquet")
File "/home/ed/.virtualenvs/venv/lib64/python3.10/site-packages/pyarrow/parquet/core.py", line 2871, in read_table
return dataset.read(columns=columns, use_threads=use_threads,
File "/home/ed/.virtualenvs/venv/lib64/python3.10/site-packages/pyarrow/parquet/core.py", line 2517, in read
table = self._dataset.to_table(
File "pyarrow/_dataset.pyx", line 332, in pyarrow._dataset.Dataset.to_table
File "pyarrow/_dataset.pyx", line 2661, in pyarrow._dataset.Scanner.to_table
File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 115, in pyarrow.lib.check_status
OSError: Malformed levels. min: 0 max: 3 out of range. Max Level: 2
It works with use_pyarrow=True, however, the Parquet files I am creating are being done in Rust. Interestingly I can do pl.read_parquet(...).to_arrow()
Thank you. This might be a silly question: is there a simple way for me in the interim to write the parquet file in Rust by calling C++ Arrow? Or perhaps trying the arrow/parquet crates instead of arrow2/parquet2?
My current workaround otherwise would be: write parquets in Rust -> in python: pl.read_parquet(...).write_parquet(..., use_pyarrow=True)
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
I receive the following error running the code below.
It works with
use_pyarrow=True
, however, the Parquet files I am creating are being done in Rust. Interestingly I can dopl.read_parquet(...).to_arrow()
Reproducible example
Expected behavior
The last line should return a
pyarrow.Table
containing the dataInstalled versions
The text was updated successfully, but these errors were encountered: