deniskuzZ commented on code in PR #5215:
URL: https://github.com/apache/hive/pull/5215#discussion_r1615880194
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/StatsOptimizer.java:
##########
@@ -943,6 +944,11 @@ private Long getRowCnt(
}
} else { // unpartitioned table
if (!StatsUtils.areBasicStatsUptoDateForQueryAnswering(tbl,
tbl.getParameters())) {
+ if (MetaStoreUtils.isNonNativeTable(tbl.getTTable())
+ && tbl.getStorageHandler().canComputeQueryUsingStats(tbl)) {
+ return
Long.valueOf(tbl.getStorageHandler().getBasicStatistics(Partish.buildFor(tbl))
Review Comment:
btw, can we change the map type to Long to avoid casts?
--
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]