Skip to content

Can't access column from aggregates #758

@virendrakabra14

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

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