Skip to content

Commit b26aa55

Browse files
committed
fix(polars): handle the case of an empty InValues list
1 parent ab3bf26 commit b26aa55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ibis/backends/polars/compiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ def in_column(op, **kw):
431431
def in_values(op, **kw):
432432
value = translate(op.value, **kw)
433433
options = list(map(translate, op.options))
434+
if not options:
435+
return pl.lit(False)
434436
return pl.any_horizontal([value == option for option in options])
435437

436438

0 commit comments

Comments
 (0)