Support reading Parquet float16 data as float32 #19265
Labels
A-io-parquet
Area: reading/writing Parquet files
accepted
Ready for implementation
enhancement
New feature or an improvement of an existing feature
support
Description
Support for working with float16 data in Polars is still being debated: #7288
In the meantime, it would be useful to be able to at least read float16 data from Parquet files. Eg:
Using Polars 1.9.0, this fails with:
Ideally this would work and convert the data to float32, which is what happens if you use
pl.read_parquet('data.parquet', use_pyarrow=True)
, but this isn't possible when usingpl.scan_parquet
with lazy or streaming operations.The text was updated successfully, but these errors were encountered: