Skip to content

Query: FirstOrDefault on collection projection may fail to find correlation #16330

Closed

Description

@smitpatel
var actual = ctx.Gears.OrderBy(g => g.Nickname).Select(g => g.Weapons).FirstOrDefault();
                

Conditions

  • FirstOrDefault on top level which causes a pushdown
  • The correlation predicate is not part of identifier for outer
  • The correlation predicate is not being projected out from outer.

This causes it to lose reference when pushing down and then fail to identify correlation predicate.

Activity

  1. added this to the 3.0.0 milestone on Jun 28, 2019
  2. modified the milestones: 3.0.0, on Jul 2, 2019
  3. added 3 commits that reference this issue on Aug 10, 2019
    d90e9ce
    09f58e2
    8273469
  4. added a commit that references this issue on Aug 13, 2019
    d11f607
  5. modified the milestones: 3.0.0, on Aug 21, 2019
  6. modified the milestones: , 3.0.0 on Nov 11, 2019
  7. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions