dtenedor opened a new pull request, #48754:
URL: https://github.com/apache/spark/pull/48754

   ### What changes were proposed in this pull request?
   
   WIP
   
   In https://github.com/apache/spark/pull/48529, we added SQL pipe syntax 
support for aggregation. This PR extends that by adding GROUP BY ALL support.
   
   For example:
   
   ```
   SELECT 1 AS x, 2 AS y
   UNION ALL SELECT 1, 1
   |> AGGREGATE SUM(y) GROUP BY ALL
   
   1    3
   ```
   
   ### Why are the changes needed?
   
   The SQL pipe operator syntax will let users compose queries in a more 
flexible fashion.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, see above.
   
   ### How was this patch tested?
   
   This PR adds a few unit test cases, but mostly relies on golden file test 
coverage. I did this to make sure the answers are correct as this feature is 
implemented and also so we can look at the analyzer output plans to ensure they 
look right as well.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No


-- 
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