Skip to content

Query: Materialize Required dependents always #22019

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Aug 11, 2020
Merged

Conversation

smitpatel
Copy link
Contributor

  • Also remove additional conditions in SelectExpression

Resolves #21807
Resolves #12100

@smitpatel smitpatel requested a review from AndriySvyryd August 11, 2020 19:39
@@ -1034,6 +1034,14 @@ private static void PopulateRowInternalForeignKeys(TableBase table)
entityTypesToVisit.Enqueue(
(referencingForeignKey.DeclaringEntityType, optional || !referencingForeignKey.IsRequiredDependent));
}

if (mainMapping.IncludesDerivedTypes)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the mapping for the current entityType, as other types sharing the table might be using different strategies

- Also remove additional conditions in SelectExpression

Resolves #21807
Resolves #12100
@smitpatel smitpatel force-pushed the smit/requireddependent branch from 2274273 to 2ca3a45 Compare August 11, 2020 20:46
@smitpatel smitpatel requested a review from AndriySvyryd August 11, 2020 20:46
@smitpatel smitpatel merged commit f69b5ac into main Aug 11, 2020
@smitpatel smitpatel deleted the smit/requireddependent branch August 11, 2020 21:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
2 participants