-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Enhancement of ViewMetadata #9514
Comments
@nk1506 which particular methods did you have in mind that would make sense to extract into |
To simplify TableOperations and ViewOperations I think extracting at least following methods will help:
I did a small poc with Hive catalog but mostly with generic class. It makes code more cleaner. |
cc: @pvary |
@nastra: When managing tables and views in the catalogs we often have to handle them similarly. Especially when we drop, alter a table but even when creating them we need to manage the metadata similarly. Also, IMHO it is important to have a lock around the Also this commonality is already highlighted by having the same names for the methods. It is just not formalized. |
@szehon-ho , regarding comment . that discussion is already happening here. But we haven't concluded yet. |
Hi @nk1506 , I think we can have a lazy consensus, if nobody objects then we can go. Did you have any concern about adding the common interface ? |
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible. |
Feature Request / Improvement
Motivation: #8907 (comment)
Currently there is no relation between TableMetadata and ViewMetadata. Which causes many duplicate codes just to use commonTable/View definitions like Schema/MetadataLocation/Properties.
At many places we have similar methods with overloaded parameters like TableMetadata and ViewMetadata.
To support purge on view it is difficult to traverse to the historical metadata files.
I would like to start a discussion on potential enhancement of ViewMetadata.
Query engine
None
The text was updated successfully, but these errors were encountered: