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
HIVE-25935: Cleanup IMetaStoreClient#getPartitionsByNames APIs #3072
Conversation
...astore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
Show resolved
Hide resolved
...astore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
Outdated
Show resolved
Hide resolved
validWriteIdList = vWriteIdList != null ? vWriteIdList.toString() : null; | ||
tableId = tbl.getTTable().getId(); | ||
} | ||
String validWriteIdList = null; |
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.
nit: I wonder if we can use the following:
GetPartitionsByNamesRequest req = MetaStoreUtils.convertToGetPartitionsByNamesRequest(tbl.getDbName(), tbl.getTableName(),
partNames.subList(nBatches*batchSize, nParts), getColStats, Constants.HIVE_ENGINE, null,
null);
List<org.apache.hadoop.hive.metastore.api.Partition> tParts = getPartitionsByNames(req, tbl);
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 need to push down the vaildWriteIdList
and the tableId
, so if there is caching in the catalog side then we the cache could be refreshed when needed
Overall looks good to me, +1 |
…abled before the changes, so I think this should be ok
@@ -291,7 +285,6 @@ public void tableInHiveCatalog() throws TException { | |||
dropStats(DEFAULT_CATALOG_NAME, dbName, tableName, null, colMap.keySet()); | |||
} | |||
|
|||
@Ignore("HIVE-19509: Disable tests that are failing continuously") | |||
@Test |
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.
maybe we should also disable this method...
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.
Maybe all 3. Will do it when I have some time
@dengzhhu653, @zabetak: Could you please review? |
Look good to me, +1 |
IMetaStoreClient |
Could you please ellaborate? |
The Sorry about that... |
|
… Vary reviewed by Zhihua Deng) (apache#3072)
… Vary reviewed by Zhihua Deng) (apache#3072)
What changes were proposed in this pull request?
Cleans up deprecated methods
Why are the changes needed?
We do not want to release deprecated methods
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit tests will show errors, if any