gaoyajun02 opened a new pull request #33574:
URL: https://github.com/apache/spark/pull/33574


   ### What changes were proposed in this pull request?
   
   Currently, references to grouping sets are reported as errors after 
aggregated expressions, e.g.
   ```
   SELECT count(name) c, name
   FROM VALUES ('Alice'), ('Bob') people(name)
   GROUP BY name GROUPING SETS(name);
   ```
   Error in query: expression 'people.`name`' is neither present in the group 
by, nor is it an aggregate function. Add to group by or wrap in first() (or 
first_value) if you don't care which value you get.;;
   
   ### Why are the changes needed?
   
   Fix the map anonymous function in the constructAggregateExprs function does 
not use underscores to avoid
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Unit tests.
   


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