Query: When doing optional nav expansion, we can sometimes avoid nullability safeguards, if the user has performed them already #6203
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
In query like this:
we apply nullability safeguards on IsActive column because EntityC is optional navigation, like so:
We don't need them in this case, because query already constrained the results rows where EntityC is not null. We could detect this pattern and avoid some unnecessary complications. It doesn't matter much for relational, since the safeguards are optimized out anyway, but this could be of some value for InMemory store.
See #6195 for the full repro of the scenario
The text was updated successfully, but these errors were encountered: