Skip to content

Commit 408cdd8

Browse files
Address review comments
1 parent 588fed0 commit 408cdd8

File tree

1 file changed

+6
-1
lines changed
  • standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore

1 file changed

+6
-1
lines changed

standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9826,7 +9826,12 @@ public FireEventResponse fire_listener_event(FireEventRequest rqst) throws TExce
98269826
catName = rqst.isSetCatName() ? rqst.getCatName() : getDefaultCatalog(conf);
98279827
dbName = rqst.getDbName();
98289828
tblName = rqst.getTableName();
9829-
List<List<String>> partitionVals = rqst.getBatchPartitionValsForRefresh();
9829+
List<List<String>> partitionVals;
9830+
if (rqst.getPartitionVals() != null && !rqst.getPartitionVals().isEmpty()) {
9831+
partitionVals = Arrays.asList(rqst.getPartitionVals());
9832+
} else {
9833+
partitionVals = rqst.getBatchPartitionValsForRefresh();
9834+
}
98309835
Map<String, String> tableParams = rqst.getTblParams();
98319836
ReloadEvent event = new ReloadEvent(catName, dbName, tblName, partitionVals, rqst.isSuccessful(),
98329837
rqst.getData().getRefreshEvent(), tableParams, this);

0 commit comments

Comments
 (0)