dengzhhu653 commented on code in PR #6287:
URL: https://github.com/apache/hive/pull/6287#discussion_r2776550624
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java:
##########
@@ -7437,213 +7042,32 @@ public AggrStats
get_aggr_stats_for(PartitionsStatsRequest request) throws TExce
}
@Override
- public boolean set_aggr_stats_for(SetPartitionsStatsRequest request) throws
TException {
- boolean ret = true;
- List<ColumnStatistics> csNews = request.getColStats();
- if (csNews == null || csNews.isEmpty()) {
- return ret;
+ public boolean set_aggr_stats_for(SetPartitionsStatsRequest req) throws
TException {
+ List<ColumnStatistics> columnStatisticsList = req.getColStats();
+ if (columnStatisticsList == null || columnStatisticsList.isEmpty()) {
+ return true;
}
- // figure out if it is table level or partition level
- ColumnStatistics firstColStats = csNews.get(0);
- ColumnStatisticsDesc statsDesc = firstColStats.getStatsDesc();
+ ColumnStatisticsDesc statsDesc =
columnStatisticsList.get(0).getStatsDesc();
Review Comment:
get(0) in this PR changed to getFirst()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]