Skip to content

Commit 2fe3fc4

Browse files
krzysztof-kwittcpcloud
authored andcommitted
feat(datafusion): implement ops.Translate
1 parent 7e61391 commit 2fe3fc4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ibis/backends/datafusion/compiler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@ def string_concat(op):
471471
return df.functions.concat(*map(translate, op.arg))
472472

473473

474+
@translate.register(ops.Translate)
475+
def string_translate(op):
476+
return df.functions.translate(*map(translate, op.args))
477+
478+
474479
@translate.register(ops.RegexExtract)
475480
def regex_extract(op):
476481
arg = translate(op.arg)

ibis/backends/tests/test_string.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ def test_string_col_is_unicode(alltypes, df):
278278
marks=pytest.mark.notimpl(
279279
[
280280
"clickhouse",
281-
"datafusion",
282281
"duckdb",
283282
"mssql",
284283
"mysql",

0 commit comments

Comments
 (0)