Skip to content
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

Nested .GroupBy Query - StackOverflowException #27403

Closed
alienwareone opened this issue Feb 8, 2022 · 1 comment
Closed

Nested .GroupBy Query - StackOverflowException #27403

alienwareone opened this issue Feb 8, 2022 · 1 comment

Comments

@alienwareone
Copy link

using EfCore 6.0.1

The following Linq query throws a StackOverflowException.

var result = applicationDbContext.PageImpressions
    .GroupBy(x => x.CreationDateTime.Date)
    .Select(x => new
    {
        TotalCount = x.Count(),
        UniqueIpAddressCount = x.GroupBy(x => x.IpAddress).Count(),
        UniqueUserAgentCount = x.GroupBy(x => x.UserAgent).Count()
    })
    .ToList();

Minimal Repo:
https://github.com/alienwareone/EfCoreNestedGroupByError

@smitpatel
Copy link
Contributor

Duplicate of #27094

@smitpatel smitpatel marked this as a duplicate of #27094 Feb 8, 2022
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants