Open etiennebacher opened 3 months ago
This produces a proper error for write_parquet()
:
import os
os.environ["POLARS_VERBOSE"] = "1"
import polars as pl
test = pl.DataFrame({"a": [1]})
test.write_parquet("foo.parquet", statistics={"null_count": False, "min": True, "max": False, "distinct_count": True})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/etienne/.local/lib/python3.10/site-packages/polars/dataframe/frame.py", line 3554, in write_parquet
self._df.write_parquet(
polars.exceptions.ComputeError: parquet: File out of specification: null count of a page is required
Checks
Reproducible example
Log output
Issue description
sink_parquet()
panics whennull_count
isFalse
in the argumentstatistics
, but only when other values ofstatistics
are provided. For example, this works:but this panics:
Expected behavior
Should work or give a proper error instead of panicking.
Installed versions