punya opened a new issue, #3042:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/3042

   `|> SELECT` and `|> EXTEND` do not parse a trailing `WINDOW` clause. 
BigQuery allows one on both ([pipe 
syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax)),
 visible only to that operator:
   
   ```sql
   FROM t
   |> EXTEND SUM(sales) OVER item_window AS category_total
      WINDOW item_window AS (PARTITION BY category);
   ```
   
   Currently:
   
   ```sql
   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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to