"operator does not support primitive Int128
" when using Decimal from arrow_array
#16111
Closed
2 tasks done
Labels
A-dtype-decimal
Area: decimal data type
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
rust
Related to Rust Polars
Checks
Reproducible example
this line causes the error
Log output
Issue description
This might be somewhat unique or convoluted. I am building an ETL application for a data pipeline. I am using arrow-odbc to pull data from a database, using polars to do transforms, and then back to arrow-odbc to insert the DataFrame into another database.
I ran into an issue with one of my datasets. Similar to an issue seen in a python issue from previously but not in a rust issue as far as I can tell. #12393 which was fixed by #12413.
I followed the similar fix an updated polars-arrow-0.39.2\src\array\mod.rs functions to and from arrow_data::ArrayData to use the macro with_match_primitive_type_full! and it is working for me.
(I'm new to open source and felt intimidated going straight to adding a pull request for this fix, so I started with an issue even though I found a fix for my purpose. In my opinion, this fix is likely not exhaustive and may not be appropriate for most situations. i defer to the maintainers.)
Expected behavior
the above code should print the contents of the dataframe rather than error.
Installed versions
[dependencies]
anyhow = "1.0.83"
arrow = "51.0.0"
arrow-array = "51.0.0"
arrow-schema = "51.0.0"
polars = "0.39.2"
polars-arrow = { version = "0.39.2", features = ["arrow_rs"] }
The text was updated successfully, but these errors were encountered: