Skip to content

Commit

Permalink
feat(snowflake): add ArrayRemove implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Aug 5, 2023
1 parent 465fae1 commit 4f9d9f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/snowflake/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ def _map_get(t, op):
lambda left, right: sa.func.array_distinct(sa.func.array_cat(left, right)),
2,
),
ops.ArrayRemove: fixed_arity(sa.func.array_remove, 2),
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 Expand Up @@ -470,7 +471,6 @@ def _map_get(t, op):
ops.CumulativeOp,
ops.NTile,
# ibis.expr.operations.array
ops.ArrayRemove,
ops.ArrayRepeat,
# ibis.expr.operations.reductions
ops.MultiQuantile,
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ def test_array_position(backend, con):
"pandas",
"polars",
"postgres",
"snowflake",
],
raises=com.OperationNotDefinedError,
)
Expand Down

0 comments on commit 4f9d9f9

Please sign in to comment.