Skip to content

Commit

Permalink
feat(common): use patterns to filter out nodes during graph traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs authored and cpcloud committed Oct 12, 2023
1 parent 732c031 commit 3edd8f7
Show file tree
Hide file tree
Showing 8 changed files with 278 additions and 233 deletions.
3 changes: 1 addition & 2 deletions ibis/backends/clickhouse/compiler/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,5 @@ def fn(node, _, **kwargs):
| add_one_to_nth_value_input
)
# apply translate rules in topological order
results = op.map(fn, filter=(ops.TableNode, ops.Value))
node = results[op]
node = op.map(fn)[op]
return node.this if isinstance(node, sg.exp.Subquery) else node
Loading

0 comments on commit 3edd8f7

Please sign in to comment.