deniskuzZ commented on code in PR #5498:
URL: https://github.com/apache/hive/pull/5498#discussion_r1815543864
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/StatsOptimizer.java:
##########
@@ -932,7 +932,7 @@ private Collection<List<ColumnStatisticsObj>>
verifyAndGetPartColumnStats(
private Long getRowCnt(
ParseContext pCtx, TableScanOperator tsOp, Table tbl) throws
HiveException {
Long rowCnt = 0L;
- if (tbl.isPartitioned()) {
+ if (tbl.isPartitioned() &&
StatsUtils.checkCanProvidePartitionStats(tbl)) {
for (Partition part : pctx.getPrunedPartitions(
tsOp.getConf().getAlias(), tsOp).getPartitions()) {
if
(!StatsUtils.areBasicStatsUptoDateForQueryAnswering(part.getTable(),
part.getParameters())) {
Review Comment:
fixed in e4d36578b7f5c72aca3d1a4afe71a3af94fcaf85
--
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]