Skip to content

Commit

Permalink
feat(snowflake): implement array flatten support
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Nov 21, 2023
1 parent d15c6e6 commit d3c754f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ibis/backends/snowflake/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ def _timestamp_bucket(t, op):
ops.ArrayZip: _array_zip,
ops.ArraySort: unary(sa.func.array_sort),
ops.ArrayRepeat: fixed_arity(sa.func.ibis_udfs.public.array_repeat, 2),
ops.ArrayFlatten: fixed_arity(sa.func.array_flatten, 1),
ops.StringSplit: fixed_arity(sa.func.split, 2),
# snowflake typeof only accepts VARIANT, so we cast
ops.TypeOf: unary(lambda arg: sa.func.typeof(sa.func.to_variant(arg))),
Expand Down

0 comments on commit d3c754f

Please sign in to comment.