Skip to content

Commit

Permalink
fix(polars): back compat for concat_str separator argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 6, 2023
1 parent d6534a7 commit ced5a61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis/backends/polars/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,11 @@ def string_concat(op):
def string_join(op):
args = [translate(arg) for arg in op.arg]
_assert_literal(op.sep)
return pl.concat_str(args, sep=op.sep.value)
sep = op.sep.value
try:
return pl.concat_str(args, separator=sep)
except TypeError: # pragma: no cover
return pl.concat_str(args, sep=sep) # pragma: no cover


@translate.register(ops.Substring)
Expand Down

0 comments on commit ced5a61

Please sign in to comment.