Skip to content

Commit cf6bf9c

Browse files
authored
chore: clean up ctx specification
1 parent 62fa479 commit cf6bf9c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ibis/backends/polars/compiler.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,12 +1257,11 @@ def execute_union(op, **kw):
12571257

12581258

12591259
@translate.register(ops.Intersection)
1260-
def execute_intersection(op, **kw):
1261-
ctx = kw.get("ctx")
1260+
def execute_intersection(op, *, ctx, **kw):
12621261
ctx.register_many(
12631262
frames={
1264-
"left": translate(op.left, **kw),
1265-
"right": translate(op.right, **kw),
1263+
"left": translate(op.left, ctx=ctx **kw),
1264+
"right": translate(op.right, ctx=ctx, **kw),
12661265
}
12671266
)
12681267
sql = (
@@ -1277,12 +1276,11 @@ def execute_intersection(op, **kw):
12771276

12781277

12791278
@translate.register(ops.Difference)
1280-
def execute_difference(op, **kw):
1281-
ctx = kw.get("ctx")
1279+
def execute_difference(op, *, ctx, **kw):
12821280
ctx.register_many(
12831281
frames={
1284-
"left": translate(op.left, **kw),
1285-
"right": translate(op.right, **kw),
1282+
"left": translate(op.left, ctx=ctx, **kw),
1283+
"right": translate(op.right, ctx=ctx, **kw),
12861284
}
12871285
)
12881286
sql = (

0 commit comments

Comments
 (0)