kasakrisz commented on code in PR #4000:
URL: https://github.com/apache/hive/pull/4000#discussion_r1097173244


##########
ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java:
##########
@@ -454,6 +468,27 @@ private static Statistics collectStatistics(HiveConf conf, 
PrunedPartitionList p
     return stats;
   }
 
+  private static Map<String, Long> getValidBasicStatsFromStorageHandler(Table 
table) {
+
+    Map<String, String> storageHandlerBasicStatsMap =
+        (table.isNonNative() && 
table.getStorageHandler().canProvideBasicStatistics()) ? 
table.getStorageHandler()
+            .getBasicStatistics(Partish.buildFor(table)) : null;

Review Comment:
   How about moving this check and fetch into `BasicStats` and 
`StatsUtils.collectStatistics` don't have don't have to be changed at all?
   Example: 
https://github.com/kasakrisz/hive/commit/e03441477a0c616f1b3012dc4ddc6dfe0f01743b
   



-- 
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]

Reply via email to