Skip to content

[BUG] Floor division by 0 is not NULL in cudf-polars #19405

@Matt711

Description

@Matt711

Describe the bug
pola-rs/polars#23365

Steps/Code to reproduce bug

In [1]: import polars as pl

In [2]: pl.LazyFrame({"a": [2, 0, -2]}).select(pl.col("a") // 0).collect() #CPU
Out[2]: 
shape: (3, 1)
┌──────┐
│ a    │
│ ---  │
│ i64  │
╞══════╡
│ null │
│ null │
│ null │
└──────┘

In [3]: pl.LazyFrame({"a": [2, 0, -2]}).select(pl.col("a") // 0).collect(engine=pl.GPUEngine(raise_on_fail=True)) #GPU
Out[3]: 
shape: (3, 1)
┌────────────┐
│ a          │
│ ---        │
│ i64        │
╞════════════╡
│ 4294967295 │
│ 4294967295 │
│ -2         │
└────────────┘

Expected behavior
match polars

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcudf-polarsIssues specific to cudf-polars

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions