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

   ### What changes were proposed in this pull request?
   Top-k filters on a dense_rank() window function return wrong results, due to 
a bug in optimization InferWindowGroupLimit, specifically in the code for 
DenseRankLimitIterator, introduced in 
https://issues.apache.org/jira/browse/SPARK-37099.
   
   ### Why are the changes needed?
   Fix wrong results bug.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, fixes wrong results.
   
   ### How was this patch tested?
   Add sql tests and 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