Skip to content

Commit

Permalink
feat(clickhouse): implement RegexSplit
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and gforsyth committed Dec 19, 2023
1 parent 07beaed commit e3c507e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibis/backends/clickhouse/compiler/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,3 +1050,8 @@ def _timestamp_range(op, *, start, stop, step, **_):
func, F.range(0, F.timestampDiff(unit, start, stop), step_value)
)
return result


@translate_val.register(ops.RegexSplit)
def _regex_split(op, *, arg, pattern, **_):
return F.splitByRegexp(pattern, cast(arg, dt.String(nullable=False)))

0 comments on commit e3c507e

Please sign in to comment.