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

Query: Implement optional dependent conditions #23635

Merged
merged 1 commit into from
Apr 2, 2021
Merged

Conversation

smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Dec 9, 2020

An optional dependent considered present
If all non-nullable non-PK properties have a non-null value, or
If all non-nullable non-PK properties are shared with principal then at least one nullable non shared property has a non-null value
If there are no non-shared properties then it is always present and act like a required dependent

Resolves #23564

An optional dependent considered present
If all non-nullable non-PK properties have a non-null value, or
If all non-nullable non-PK properties are shared with principal then at least one nullable non shared property has a non-null value
If there are no non-shared properties then it is always present and act like a required dependent

Resolves #23564
@smitpatel smitpatel marked this pull request as ready for review April 1, 2021 19:43
@smitpatel
Copy link
Contributor Author

This is ready for review. It adds stream-lined conditions for materialization of optional. I will add validation in separate PR.

@smitpatel smitpatel merged commit df308c6 into main Apr 2, 2021
@smitpatel smitpatel deleted the smit/dependencyyyyy branch April 2, 2021 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The future of optional dependents sharing table with principal
2 participants