deniskuzZ commented on code in PR #4307:
URL: https://github.com/apache/hive/pull/4307#discussion_r1190954414


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/StatsOptimizer.java:
##########
@@ -299,7 +299,8 @@ public Object process(Node nd, Stack<Node> stack, 
NodeProcessorCtx procCtx,
           Logger.info("Table " + tbl.getTableName() + " is external. Skip 
StatsOptimizer.");
           return null;
         }
-        if (MetaStoreUtils.isNonNativeTable(tbl.getTTable())) {
+        if (MetaStoreUtils.isNonNativeTable(tbl.getTTable())

Review Comment:
   This is a more generic check. If non-native table can provide stats - we 
should use it (tbl.getStorageHandler().canProvideBasicStatistics()). 
   At this moment only 'iceberg' has support for that, default is false.



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