Closed eromoe closed 1 week ago
I think .len()
was the last time this topic came up.
https://github.com/pola-rs/polars/issues/17722#issuecomment-2244468461
However, I do think that returning i64 for len is something that we should investigate for 2.0. It is a footgun.
(Although that was just for .len()
)
Not a bug, something we're thinking about perhaps changing for Polars 2.0, but current semantics for addition/subtraction is that they're wrapping.
Not relate to len
, my data loading by pandas would not contain uint type, only in polars. Yes, the the values do not contain negative, polars assume their dtypes be uint is fine. But subtruction should not follow this .
Checks
Reproducible example
Log output
Issue description
I am checking agg result and find this problem,
Expected behavior
Detect and avoid overflow, automatically convert pl.Uint to pl.Int
Installed versions