Skip to content

Commit

Permalink
feat(polars): 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 3cbed71 commit 19b2aa0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibis/backends/polars/compiler.py
Expand Up @@ -885,6 +885,11 @@ def array_collect(op, **kw):
return arg


@translate.register(ops.ArrayFlatten)
def array_flatten(op, **kw):
return pl.concat_list(translate(op.arg, **kw))


_date_methods = {
ops.ExtractDay: "day",
ops.ExtractMonth: "month",
Expand Down

0 comments on commit 19b2aa0

Please sign in to comment.