Skip to content

Pipe syntax: |> SELECT and |> EXTEND do not parse a WINDOW clause #3042

Backlog

Description

@punya

|> SELECT and |> EXTEND do not parse a trailing WINDOW clause. BigQuery allows one on both (pipe syntax), visible only to that operator:

FROM t
|> EXTEND SUM(sales) OVER item_window AS category_total
   WINDOW item_window AS (PARTITION BY category);

Currently:

SELECT * FROM t |> EXTEND sum(v) OVER w AS s WINDOW w AS (PARTITION BY k)

fails with Expected: end of statement, found: WINDOW.

Expected: PipeOperator::Select and PipeOperator::Extend carry named_window: Vec<NamedWindowDefinition>, parsed as in a standard SELECT.

Seen on 0.63.0 and on main. Follow-up to #1758; the DataFusion side is apache/datafusion#14660.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions