-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Query: compilation error for query with Last() in a subquery #8582
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
punted-for-2.0
punted-for-2.1
type-bug
Milestone
Comments
Not needed. The code has changed and we don't allow Last with order by. |
|
smitpatel
added
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
and removed
closed-not-needed
labels
Sep 10, 2019
smitpatel
added a commit
that referenced
this issue
Sep 11, 2019
Covers EFCore.Specs.Tests Query folder Resolves #8366 Resolves #8582 Resolves #8722 Resolves #9007 Resolves #9254 Resolves #12574 Resolves #12579 Resolves #12598 Resolves #12786 Resolves #12787 Resolves #12794 Resolves #12806 Resolves #12827 Resolves #12873 Resolves #14900 Resolves #15862 Resolves #16157 Resolves #17240 Resolves #17243 Close #12889 Close #17243
smitpatel
added a commit
that referenced
this issue
Sep 11, 2019
Covers EFCore.Specs.Tests Query folder Resolves #8366 Resolves #8582 Resolves #8722 Resolves #9007 Resolves #9254 Resolves #12574 Resolves #12579 Resolves #12598 Resolves #12786 Resolves #12787 Resolves #12794 Resolves #12806 Resolves #12827 Resolves #12873 Resolves #14900 Resolves #15862 Resolves #16157 Resolves #17240 Close #12889 Close #17243
Merged
smitpatel
added a commit
that referenced
this issue
Sep 11, 2019
Covers EFCore.Specs.Tests Query folder Resolves #8366 Resolves #8582 Resolves #8722 Resolves #9007 Resolves #9254 Resolves #12574 Resolves #12579 Resolves #12598 Resolves #12786 Resolves #12787 Resolves #12794 Resolves #12806 Resolves #12827 Resolves #12873 Resolves #14900 Resolves #15862 Resolves #16157 Resolves #17240 Close #12889 Close #17243
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
punted-for-2.0
punted-for-2.1
type-bug
query:
throws:
This happens because in ResultOperatorHandler.HandleLast we push last below select (needed so that we don't track unnecessary elements). However, if last is in a subquery, rather than being the final result operator this changes cardinality of that subquery, which leads to the exception.
The text was updated successfully, but these errors were encountered: