Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert change to ToAlias and refix union bug #336

Merged
merged 4 commits into from
Aug 31, 2022
Merged

Conversation

belevy
Copy link
Collaborator

@belevy belevy commented Aug 31, 2022

#334 broke the behavior of nested subqueries

from $ from $ from table would not correctly re-alias the values.

This PR reverts that fix and substitutes it with a different one that addresses union(set operations) directly by changing how it reuses variable names.

Lesson Learned: Do not try to reuse variable names unless you want pain

… references. Change union behavior to reuse value aliases within the union itself.
@parsonsmatt parsonsmatt merged commit 754b0b5 into master Aug 31, 2022
@parsonsmatt parsonsmatt deleted the ben/fix-union-fix branch August 31, 2022 16:32
@parsonsmatt
Copy link
Collaborator

released as 3.5.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants