Skip to content

Commit

Permalink
feat(pyspark): 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 19b2aa0 commit 5d1fadf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibis/backends/pyspark/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2075,3 +2075,8 @@ def compile_levenshtein(t, op, **kwargs):
left = t.translate(op.left, **kwargs)
right = t.translate(op.right, **kwargs)
return F.levenshtein(left, right)


@compiles(ops.ArrayFlatten)
def compile_flatten(t, op, **kwargs):
return F.flatten(t.translate(op.arg, **kwargs))

0 comments on commit 5d1fadf

Please sign in to comment.