Skip to content

Aliases imperfect for named subqueries. #25655

Closed

Description

@den-crane
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)'

Activity

  1. added
    question
    and removed
    question
    on Jun 23, 2021
  2. alexey-milovidov commented on Jun 23, 2021

    @alexey-milovidov
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions