-
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: Exception when using the "let" keyword and grouping #3676
Comments
Verified that this query throws an The returned results appear to be incorrect due to a related issue (#5179) with navigations. |
Retested now that related issue has been resolved. The initial query completes successfully; however, a Attempted test in [ConditionalFact]
public virtual void Let_group_by_nav_prop()
{
AssertQuery<OrderDetail, IGrouping<string, OrderDetail>>(
ods => from od in ods
let customer = od.Order.CustomerID
group od by customer
into odg
select odg,
asserter: (l2oItems, efItems) =>
{
foreach (var pair in
from l2oItem in l2oItems
join efItem in efItems on l2oItem.Key equals efItem.Key
select new { l2oItem, efItem })
{
Assert.Equal(
pair.l2oItem.Select(i => i.OrderID).OrderBy(i => i),
pair.efItem.Select(i => i.OrderID).OrderBy(i => i));
}
});
} |
Fix: #3676 - Usage of the "let" keyword breaks grouping. - Fixed compiler bug in tracked, grouped queries. Fix: #5427 - A column has been specified more than once in the order by list thrown for a complex query with orderby and navigation. - Fixed bug in SelectExpression.PrependToOrderBy Fix: #4539 - Query :: Join flattening fails for some complex cases involving SelectMany - SelectMany after GroupJoin should not cause client-eval. Also addressed most of the R# warnings in nav. rewriter.
Fix: #3676 - Usage of the "let" keyword breaks grouping. - Fixed compiler bug in tracked, grouped queries. Fix: #5427 - A column has been specified more than once in the order by list thrown for a complex query with orderby and navigation. - Fixed bug in SelectExpression.PrependToOrderBy Fix: #4539 - Query :: Join flattening fails for some complex cases involving SelectMany - SelectMany after GroupJoin should not cause client-eval. Also addressed most of the R# warnings in nav. rewriter.
Fix: #3676 - Usage of the "let" keyword breaks grouping. - Fixed compiler bug in tracked, grouped queries. Fix: #5427 - A column has been specified more than once in the order by list thrown for a complex query with orderby and navigation. - Fixed bug in SelectExpression.PrependToOrderBy Fix: #4539 - Query :: Join flattening fails for some complex cases involving SelectMany - SelectMany after GroupJoin should not cause client-eval. Also addressed most of the R# warnings in nav. rewriter.
Fix: #3676 - Usage of the "let" keyword breaks grouping. - Fixed compiler bug in tracked, grouped queries. Fix: #5427 - A column has been specified more than once in the order by list thrown for a complex query with orderby and navigation. - Fixed bug in SelectExpression.PrependToOrderBy Fix: #4539 - Query :: Join flattening fails for some complex cases involving SelectMany - SelectMany after GroupJoin should not cause client-eval. Also addressed most of the R# warnings in nav. rewriter.
Fix: #3676 - Usage of the "let" keyword breaks grouping. - Fixed compiler bug in tracked, grouped queries. Fix: #5427 - A column has been specified more than once in the order by list thrown for a complex query with orderby and navigation. - Fixed bug in SelectExpression.PrependToOrderBy Fix: #4539 - Query :: Join flattening fails for some complex cases involving SelectMany - SelectMany after GroupJoin should not cause client-eval. Also addressed most of the R# warnings in nav. rewriter.
Version: 7.0.0-rc1-*
Query:
Message:
Full sample: https://github.com/AlekseyMartynov/ef7-bugs/tree/group-with-let
The text was updated successfully, but these errors were encountered: