exception thrown if converting chunked arrow Table with struct and dictionary columns to polar Dataframe #16040
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Hi,
pl.from_arrow() will throw an exception if a chunked arrow table contains both dictionary and struct columns. This appears to be due to the logic in arrow_to_pydf which will omit the dictionary columns from the df being constructed if there are any struct columns. The following replacement code appears to fix the issue:
Expected behavior
it should convert to a Dataframe instead of throwing
Installed versions
The text was updated successfully, but these errors were encountered: