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

   ### What changes were proposed in this pull request?
   
   This PR adds a regression test covering `grouping()` and `grouping_id()` 
when they are used in boolean expressions inside DataFrame aggregate 
expressions.
   
   ### Why are the changes needed?
   
   SPARK-38983 reported that using grouping functions in boolean expressions 
could surface a misleading grouping analytics error. Current master reports a 
type mismatch instead; this test locks in that behavior and prevents the 
misleading error from coming back.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This is a test-only change.
   
   ### How was this patch tested?
   
   - `git diff --check`
   - Attempted `./build/sbt "sql/testOnly 
org.apache.spark.sql.DataFrameAggregateSuite -- -z SPARK-38983"`, but the local 
sbt run did not complete in a reasonable time and was interrupted.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes, assisted by Codex.


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