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

Aliases imperfect for named subqueries. #25655

Closed
den-crane opened this issue Jun 23, 2021 · 1 comment · Fixed by #62185
Closed

Aliases imperfect for named subqueries. #25655

den-crane opened this issue Jun 23, 2021 · 1 comment · Fixed by #62185
Labels
duplicate st-hold We've paused the work on issue for some reason usability

Comments

@den-crane
Copy link
Contributor

SELECT
  sum(t.b) / 1 a,
  sum(t.a)        
FROM ( SELECT 1 a, 2 b ) t;

DB::Exception: Unknown identifier 'a' in aggregate function 'sum(a)'
@den-crane den-crane added question Question? usability and removed question Question? labels Jun 23, 2021
@alexey-milovidov
Copy link
Member

#23194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate st-hold We've paused the work on issue for some reason usability
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants