Add capability to get partitions separately from MV and base tables#15662
Closed
gggrace14 wants to merge 3 commits intoprestodb:masterfrom
Closed
Add capability to get partitions separately from MV and base tables#15662gggrace14 wants to merge 3 commits intoprestodb:masterfrom
gggrace14 wants to merge 3 commits intoprestodb:masterfrom
Conversation
e9e6530 to
93862a1
Compare
Add createMaterializedView API to MetadataManager and add CreateMaterializedViewTask that calls the API to perform MV creation. HiveMetadata implementation of the API is to add essential MV parameters and create MV as a standard table. ConnectorMaterializedViewDefinition is the json structure that contains all essential metadata we will save to Metastore. It will serialize into the viewOriginalText field of table metadata. Add MV partition. At the moment, we only support partitioned MV defined on partitioned base tables. MV must have one partition directly matched (selected) from base tables. By this diff, querying MV will return whatever data is contained in the MV. We only allow alter related statement on MV, which is enforced in StatementAnalyzer. We don't support MVs defined across different catalogs, which is enforced in CreateMaterializedViewTask
Keep a list of dependency materialized view names as a table parameter of every base table. When a new MV is created, append its name to the lists. Add and implement alterTable API in SemiTransactionalHiveMetastore. With this commit, we only allow parameters modification for an existing table, and will not touch table location, stats, etc. Add alterTable API to ExtendedHiveMetastore and subclasses, and again with this commit we only allow parameters modification for an existing table, and will not touch table location, stats, etc. It calls alterTable() that is already implemented.
|
This pull request has been automatically marked as stale because it has not had recent activity. If you'd still like this PR merged, please comment on the task, make sure you've addressed reviewer comments, and rebase on the latest master. Thank you for your contributions! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR depends on #15589 , and only the 3rd commit is additional and needs review here.