deniskuzZ commented on code in PR #5400: URL: https://github.com/apache/hive/pull/5400#discussion_r1728923531
########## ql/src/java/org/apache/hadoop/hive/ql/optimizer/StatsOptimizer.java: ########## @@ -945,7 +945,10 @@ private Long getRowCnt( if (!StatsUtils.areBasicStatsUptoDateForQueryAnswering(tbl, tbl.getParameters())) { return null; } - rowCnt = Long.valueOf(tbl.getProperty(StatsSetupConst.ROW_COUNT)); + Map<String, String> basicStats = MetaStoreUtils.isNonNativeTable(tbl.getTTable()) ? + tbl.getStorageHandler().getBasicStatistics(tbl) : tbl.getParameters(); Review Comment: @zhangbutao, could you please check the comments in https://github.com/apache/hive/pull/5215 and maybe incorporate changes from this PR into yours -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org