diff --git a/ibis/backends/polars/compiler.py b/ibis/backends/polars/compiler.py index 5d6cd1ffe4bd..c26f545622c9 100644 --- a/ibis/backends/polars/compiler.py +++ b/ibis/backends/polars/compiler.py @@ -1329,7 +1329,7 @@ def execute_integer_range(op, **kw): ) step = op.step.value - dtype = PolarsType.from_ibis(op.dtype) + dtype = PolarsType.from_ibis(op.dtype.value_type) empty = pl.int_ranges(0, 0, dtype=dtype) if step == 0: