This repository has been archived by the owner on Jan 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/analyzer: only check aliases to qualify in the topmost project
Because aliases on the topmost project or groupby were checked using plan.InspectExpressions, it did so recursively. That was not the intended behaviour, since it could find other aliases in a subquery or other nodes down the tree. Instead, now only the expressions of the project or groupby are checked. Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
- Loading branch information
1 parent
3fd2047
commit 21c3ce6
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters