Skip to content

Can't access column from aggregates #758

Description

@virendrakabra14

For this SQL

SELECT COUNT(tab1.col1) AS cnt FROM tab1

How do I access tab1.col1 that is inside the count-aggregate?

node = parsed[0].tokens[2] gives the Identifier node but I cannot proceed after that.
node.get_real_name() gives COUNT and node.get_alias() gives cnt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions