floor_div runtime error for i64, u32 and u64 #17238
Labels
A-arithmetic
Area: arithmetic
A-panic
Area: code that results in panic exceptions
bug
Something isn't working
regression
Issue introduced by a new release
rust
Related to Rust Polars
Checks
Reproducible example
Log output
run StackExec thread 'main' panicked at /home/titouan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.41.2/src/series/mod.rs:956:13: implementation error, cannot get ref UInt64 from Int32
Issue description
The example given above worked in version 0.39.2, but it is broken from 0.40.0 and onwards.
Variations of this error appear when using u64 (given example), u32, and i64, with the error becoming:
respectively.
Expected behavior
In version 0.39.2, the example works and outputs :
shape: (1, 1)
┌─────────┐
│ seconds │
│ --- │
│ u64 │
╞═════════╡
│ 0 │
└─────────┘
which is the expected output.
Installed versions
The text was updated successfully, but these errors were encountered: