-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add support for versioning metastore API #15044
Conversation
16dbd4a
to
c48de09
Compare
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.
I'm debating with myself whether we should carry this version information over and let getPartitionsByNames handle version check. But this might need more changes and break more interfaces so I'm not sure.
Also, currently a partition drop would invalidate all partitions for one table (See invalidatePartitionCache
). Maybe we should change this as well.
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/HiveMetastore.java
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
c48de09
to
2ed3c45
Compare
e031a29
to
b44ed03
Compare
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.
"Add optional version parameter to metastore Partition"
...o-hive-metastore/src/test/java/com/facebook/presto/hive/metastore/TestHiveMetastoreUtil.java
Outdated
Show resolved
Hide resolved
presto-hive-metastore/src/main/java/com/facebook/presto/hive/PartitionExtraInfoFetcher.java
Outdated
Show resolved
Hide resolved
presto-hive-metastore/src/main/java/com/facebook/presto/hive/PartitionExtraInfoFetcher.java
Outdated
Show resolved
Hide resolved
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.
"Add config to enable Partition versioning"
presto-hive-metastore/src/main/java/com/facebook/presto/hive/MetastoreClientConfig.java
Outdated
Show resolved
Hide resolved
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.
"Add new getPartitionNamesWithVersionByFilter metastore api"
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...ive-metastore/src/main/java/com/facebook/presto/hive/metastore/PartitionNameWithVersion.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
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.
"Add CachingHiveMetastoreConfig to manage metastore cache parameters"
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...e-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastoreConfig.java
Outdated
Show resolved
Hide resolved
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.
Overall looks good. There are some nitty things need to be fixed
c3ca890
to
90a8347
Compare
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.
"Add optional version parameter to metastore Partition" Small nits on renaming leftover
...metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/BridgingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...e-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftMetastoreUtil.java
Outdated
Show resolved
Hide resolved
...ive-metastore/src/test/java/com/facebook/presto/hive/metastore/TestCachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
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.
"Add new getPartitionNamesWithVersionByFilter metastore api"
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...o-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/ExtendedHiveMetastore.java
Outdated
Show resolved
Hide resolved
8a94c2d
to
4bfaf38
Compare
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.
Could you also add test plan and release note?
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Outdated
Show resolved
Hide resolved
...to-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Show resolved
Hide resolved
presto-hive-metastore/src/main/java/com/facebook/presto/hive/PartitionVersionFetcher.java
Show resolved
Hide resolved
4bfaf38
to
8fb17fc
Compare
8fb17fc
to
e80b7a8
Compare
@shixuan-fan I added a new commit to add the units tests. |
I'm not sure why either. But I saw the internal PR build succeeded so we should be good. I clicked retry just in case. |
depended by https://github.com/facebookexternal/presto-facebook/pull/1127