Skip to content

Commit

Permalink
feat(sql): implement StringReplace translation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 13, 2022
1 parent b7c3ef1 commit 29daa32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ibis/backends/base/sql/registry/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def concat(translator, expr):
ops.ParseURL: string.parse_url,
ops.StartsWith: string.startswith,
ops.EndsWith: string.endswith,
ops.StringReplace: fixed_arity('replace', 3),
# Timestamp operations
ops.Date: unary('to_date'),
ops.TimestampNow: lambda *args: 'now()',
Expand Down

0 comments on commit 29daa32

Please sign in to comment.