zahed1994 commented on PR #59460:
URL: https://github.com/apache/spark/pull/59460#issuecomment-6802347289

   Thanks for the thorough review and guidance, @HyukjinKwon!
   
   Addressed all three findings in commit ee329fd7fff:
   
   1. **Planner Sanity Check (P2)**: In `SparkStrategies.Aggregation`, 
unwrapped `SortOrder` when computing `distinctAggChildSets` to match 
`RewriteDistinctAggregates` and line 664 (`distinctExpressions`).
   2. **End-to-End Regular LISTAGG (P3)**: Updated the regular `listagg` test 
to pair with two distinct groups (`count(DISTINCT keep)` and `count(DISTINCT 
s)`), ensuring it enters and exercises `RewriteDistinctAggregates`.
   3. **Differing ORDER BY Key Coverage (P3)**: Added test cases covering:
      - Queries combining `count(DISTINCT s)` and `listagg(DISTINCT s)` without 
`FILTER`.
      - Opposite directions (`ORDER BY s ASC` vs `ORDER BY s DESC`) without 
`FILTER`.
      - Separate order columns with order opposite alphabetical (`ORDER BY ord 
ASC/DESC`).
      - Non-string expressions (`ORDER BY i` over integers), verifying numeric 
ordering (`"9,10"`).
   
   All unit and end-to-end tests and scalastyle pass cleanly.
   


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