-
Notifications
You must be signed in to change notification settings - Fork 638
fix(mssql): exclude window frame from rank #10302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks @IndexSeek !
I imagine you tested this out locally, but maybe we should add a snapshot test to confirm that we're generating the correct SQL?
Thank you @gforsyth, happy to help! I was thinking a test for this scenario would be worthwhile, but wasn't sure how best to go about it. Would we want to set something up a test to check that the text |
Yeah, these can be tricky to test. You can look at
For an example of a snapshot test. I think if you have an expression that will generate a rank query, then we can check in the snapshot and that will confirm for us that the window bounds are excluded on mssql I think this can/should be mssql specific |
Thank you for pointing me to an example. I gave this a try; hopefully, it covers this scenario. I'm happy to make any changes as needed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks @IndexSeek !
Description of changes
Resolves an error where the RANK window function added a
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
window frame, which is unsupported by MSSQL.Issues closed
Resolves #10291