Skip to content

Commit

Permalink
feat(snowflake): any/all/notany/notall reductions
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jan 19, 2023
1 parent b606e3d commit ba1af5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ibis/backends/snowflake/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def _map(_, op):
ops.ArrayCollect: reduction(sa.func.array_agg),
ops.StringSplit: fixed_arity(sa.func.split, 2),
ops.Map: _map,
ops.All: reduction(sa.func.booland_agg),
ops.NotAll: reduction(lambda arg: ~sa.func.booland_agg(arg)),
ops.Any: reduction(sa.func.boolor_agg),
ops.NotAny: reduction(lambda arg: ~sa.func.boolor_agg(arg)),
}
)

Expand All @@ -231,14 +235,10 @@ def _map(_, op):
ops.ArrayRepeat,
ops.Unnest,
# ibis.expr.operations.reductions
ops.All,
ops.Any,
ops.BitAnd,
ops.BitOr,
ops.BitXor,
ops.MultiQuantile,
ops.NotAll,
ops.NotAny,
# ibis.expr.operations.strings
ops.FindInSet,
ops.RegexExtract,
Expand Down

0 comments on commit ba1af5e

Please sign in to comment.