-
Notifications
You must be signed in to change notification settings - Fork 409
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
Use CTE instead of inheritance views when generating ranges for types #7455
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
146ac41
Create CTE when creating range for a material type.
dnwpark 762da6d
Order type CTEs in sql statement.
dnwpark 578f3f3
Prevent using type CTE when explaining.
dnwpark 9c00d28
Default to use_type_inheritance_cte
msullivan 7a925f8
Propagate type creation/deletion to functions that depend on ancestors
msullivan d847bb6
Separate range_for_ptrref into helper functions.
dnwpark b2e0772
Ignore expand inhview flag and always expand.
dnwpark 52bf2d6
Ensure column name is aliased correctly.
dnwpark 7cab3c4
Add PathId from ptrref.
dnwpark 809fce0
Create rvar for each ptrref component separately.
dnwpark fad929f
Add ptr_inheritance_ctes to pgsql compiler context.
dnwpark fab272e
Create CTE for pointer references.
dnwpark 479088e
Fix link properties on back links not finding output.
dnwpark cfa05fe
Rename type inheritance variables to be more general.
dnwpark f394397
Reorder some functions.
dnwpark 4dccd62
Replace expand_inhview flag with is_explain and update comments.
dnwpark 46e8083
Fix spelling.
dnwpark b0ffb07
Refactor range_for_material_objtype to remove recursion and extra bra…
dnwpark add6e7f
Remove ptr_cte field and keep pointer ctes separate from type ctes.
dnwpark 0d2f2b9
Move assert forward in range for typeref process.
dnwpark 7c8352d
Fix CTEs in pointer conversion expressions.
dnwpark e3d7541
Remove special case for cfg and sys.
dnwpark 6f38582
Remove special case for schema.
dnwpark 1b4643b
Remove use_inheritance_ctes flag.
dnwpark bafd35b
Remove cfg view children from non-cfg view typerefs.
dnwpark 08f6fdd
Fix CTEs not being added to non-set expr statements after compile.
dnwpark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can collapse out the
expr_type
conditions--those can only hold if the type is an object anyway.