drusso opened a new pull request #8836:
URL: https://github.com/apache/arrow/pull/8836


   This change is a proposal to broaden the SQL planner's support for queries 
such as:
   
   * GROUP BY without an aggregation
   ```
   SELECT a FROM t GROUP BY a;
   SELECT MAX(b) FROM t GROUP BY a;
   SELECT MAX(b) + 1 FROM t GROUP BY a;
   SELECT MAX(b + 1) FROM t GROUP BY a;
   SELECT a + 1, MAX(b) FROM t GROUP BY a + 1;
   ```
   
   In these queries 
   
   Largely the changes  loosen some of the restrictions, broadening support for 
more queries, but there
   
   There are two existing tests where behaviour has changed: 
   
   * `select_7480_1()`: this scenario is not all of the GROUP BY expressions 
are in the SELECT expressions - this is an internal change, since the loosening 
this restriction is part of the proposed 
   * `select_nested_with_filters()`: 
   


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

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


Reply via email to