Skip to content

Commit

Permalink
feat(bigquery): implement ops.Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-kwitt authored and cpcloud committed Jan 4, 2023
1 parent 5dc8482 commit 77a4b3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/bigquery/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ def _clip(t, op):
ops.Substring: _string_substring,
ops.StrRight: _string_right,
ops.Capitalize: _capitalize,
ops.Translate: fixed_arity("TRANSLATE", 3),
ops.Repeat: fixed_arity("REPEAT", 2),
ops.RegexSearch: _regex_search,
ops.RegexExtract: _regex_extract,
Expand Down Expand Up @@ -658,7 +659,6 @@ def _clip(t, op):
}

_invalid_operations = {
ops.Translate,
ops.FindInSet,
ops.DateDiff,
ops.TimestampDiff,
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 @@ -132,7 +132,6 @@ def test_string_col_is_unicode(alltypes, df):
id='translate',
marks=pytest.mark.notimpl(
[
"bigquery",
"clickhouse",
"datafusion",
"duckdb",
Expand Down

0 comments on commit 77a4b3e

Please sign in to comment.