-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Combine multiple LIMIT
s
#35383
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
Comments
Fixes dotnet#35383 for trivial cases (constants/literals and repeated expressions).
Fixes dotnet#35383 for trivial cases (constants/literals and repeated expressions).
Fixes dotnet#35383 for trivial cases (constants/literals and repeated expressions).
I realize this has already been merged, but wouldn't it make sense to use the latest assigned limit, instead of calculating the least limit? so |
@ahmednfwela the purpose of this PR is not to change the behavior of Regarding the semantics of |
It is currently possible to end up with multiple consecutive
LIMIT
in a query.This is especially likely when combined with other query optimizations (such as those that drop unneeded
ORDER BY
), as mentioned in #34831Removing them avoids nesting queries and in some cases makes it possible to use a simpler join instead of an apply.
The text was updated successfully, but these errors were encountered: