Skip to content

Commit

Permalink
feat(datafusion): implement ops.Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-kwitt authored and cpcloud committed Feb 16, 2023
1 parent 7e61391 commit 2fe3fc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ibis/backends/datafusion/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ def string_concat(op):
return df.functions.concat(*map(translate, op.arg))


@translate.register(ops.Translate)
def string_translate(op):
return df.functions.translate(*map(translate, op.args))


@translate.register(ops.RegexExtract)
def regex_extract(op):
arg = translate(op.arg)
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/tests/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ def test_string_col_is_unicode(alltypes, df):
marks=pytest.mark.notimpl(
[
"clickhouse",
"datafusion",
"duckdb",
"mssql",
"mysql",
Expand Down

0 comments on commit 2fe3fc4

Please sign in to comment.