Skip to content

order by named aggregates results in an error #28

@DanCory

Description

@DanCory

Using the sample data and sample view from the readme:

SEMANTIC SELECT
    year,
    region,
    AGGREGATE(revenue) AS revenue,
    AGGREGATE(revenue) AT (ALL region) AS year_total,
FROM sales_v
order by revenue/year_total;

causes

Invalid Input Error:
Query error: Binder Error: Alias "year_total" referenced in a SELECT clause - but the expression has a subquery. This is not yet supported.

LINE 6: FROM sales_v _outer GROUP BY year, region order by revenue/year_total;
                                                                   ^

LINE 1: SEMANTIC SELECT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions