Skip to content

Conversation

@huangxiaopingRD
Copy link
Contributor

What changes were proposed in this pull request?

Fix the wrong example query in WindowGroupLimit

Why are the changes needed?

Fix the incorrect comments

Does this PR introduce any user-facing change?

No

How was this patch tested?

@github-actions github-actions bot added the SQL label Nov 11, 2025
* SELECT *, ROW_NUMBER() OVER(PARTITION BY k ORDER BY a) AS rn FROM Tab1 WHERE 5 > rn
* SELECT *, ROW_NUMBER() OVER(PARTITION BY k ORDER BY a) AS rn FROM Tab1 WHERE rn <= 5
* SELECT *, ROW_NUMBER() OVER(PARTITION BY k ORDER BY a) AS rn FROM Tab1 WHERE 5 >= rn
* SELECT * FROM (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind describing what was wrong in the original examples?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original example had a grammatical error. It cannot reference the rn column within a where clause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants