Skip to content

Commit

Permalink
chore: rewrite with parent
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 14, 2023
1 parent 62a6c7e commit 44a0871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/base/sqlglot/rewrites.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def join_chain_to_select(_):

@replace(
Object(Select, Object(Select))
& ~Check(_.find(ops.WindowFunction, filter=ops.Value))
& ~Check(_.parent.find(ops.WindowFunction, filter=ops.Value))
)
def merge_select_select(_):
subs = {ops.Field(_.parent, k): v for k, v in _.parent.fields.items()}
Expand Down

0 comments on commit 44a0871

Please sign in to comment.