-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Query: New set of conditions to materialize optional dependents Let A be the set of properties which are not sharing column with any principal. B be the subset of A where property is required. C be subset of A where property is optional. (hence A = B + C) The necessary condition for materialization without anything else be C1 - all required properties (excluding PK) must have a value (with or without sharing). - If A is empty, then C1 will be sufficient condition as it will be required dependent. - If B is non-empty, then C1 will cover those properties and be sufficient condition. - If B is empty and then C is non-empty, then materialize if there is at least 1 non-null value in C along with C1 being true. - Otherwise null. If there are no required properties other than PK (essentially C1 does not exist). B is by definition empty. - If A is empty then always materialize. - If A is non-empty implies C is non-empty, then materialize if there is at least 1 non-null value in C. Resolves #22054
- Loading branch information
Showing
2 changed files
with
208 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters