-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-45543][SQL]
InferWindowGroupLimit
causes bug if the other wi…
…ndow functions haven't the same window frame as the rank-like functions ### What changes were proposed in this pull request? #38799 Introduce the group limit of Window for rank-based filter to optimize top-k computation. But it causes a bug if window expressions exists non-rank function which has the window frame is not the same as `(UnboundedPreceding, CurrentRow)`. Please see the detail at https://issues.apache.org/jira/browse/SPARK-45543. ### Why are the changes needed? Fix the bug. ### Does this PR introduce _any_ user-facing change? 'Yes'. ### How was this patch tested? New test cases. ### Was this patch authored or co-authored using generative AI tooling? 'No'. Closes #43385 from beliefer/SPARK-45543. Authored-by: Jiaan Geng <beliefer@163.com> Signed-off-by: Jiaan Geng <beliefer@163.com>
- Loading branch information
Showing
2 changed files
with
126 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters