Skip to content

Commit

Permalink
feat: allow selection subclasses to define new node args
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Dijamco authored and cpcloud committed Jun 22, 2022
1 parent 0062429 commit 2a7dc41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis/expr/operations/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class Selection(TableNode, sch.HasSchema):
default=(),
)

def __init__(self, table, selections, predicates, sort_keys):
def __init__(self, table, selections, predicates, sort_keys, **kwargs):
from ibis.expr.analysis import shares_all_roots, shares_some_roots

if not shares_all_roots(selections + sort_keys, table):
Expand All @@ -399,6 +399,7 @@ def __init__(self, table, selections, predicates, sort_keys):
selections=selections,
predicates=predicates,
sort_keys=sort_keys,
**kwargs,
)

# Validate no overlapping columns in schema
Expand Down

0 comments on commit 2a7dc41

Please sign in to comment.