Skip to content

Commit

Permalink
feat: implement semi/anti join for the pyspark backend
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Mar 2, 2022
1 parent 8183efe commit 3e1ba9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ibis/backends/pyspark/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,16 @@ def compile_outer_join(t, expr, scope, timecontext, **kwargs):
return compile_join(t, expr, scope, timecontext, how='outer')


@compiles(ops.LeftSemiJoin)
def compile_left_semi_join(t, expr, scope, timecontext, **kwargs):
return compile_join(t, expr, scope, timecontext, how='leftsemi')


@compiles(ops.LeftAntiJoin)
def compile_left_anti_join(t, expr, scope, timecontext, **kwargs):
return compile_join(t, expr, scope, timecontext, how='leftanti')


def compile_join(t, expr, scope, timecontext, *, how):
op = expr.op()

Expand Down

0 comments on commit 3e1ba9c

Please sign in to comment.