Handling of large integer literals is wrong when combining integers of different types/dynamic integers #20829
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
The test fails, because
select(...).item()
often turns into None.Issue description
This is a continuation of the issue I discovered when diagnosing #20807.
If you look through the logic in
polars-core/src/utils/supertype.rs
, it hasn't been updated for Int128. One part is covered in #20830, but this is a broader issue.Things that need fixing include (but are likely not limited to):
materialize_smallest_dyn_int()
materialize_dyn_int_pos()
get_supertype_with_options()
None of them acknowledge the existence of Int128 dtype, and therefore give unexpected results for large integers.
Expected behavior
See the assertions in the test.
Installed versions
The text was updated successfully, but these errors were encountered: