shameersss1 commented on code in PR #4120:
URL: https://github.com/apache/hive/pull/4120#discussion_r1141947968


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java:
##########
@@ -167,21 +167,23 @@ public Object process(Node nd, Stack<Node> stack, 
NodeProcessorCtx procCtx,
       PrunedPartitionList partList = 
aspCtx.getParseContext().getPrunedPartitions(tsop);
       ColumnStatsList colStatsCached = 
aspCtx.getParseContext().getColStatsCached(partList);
       Table table = tsop.getConf().getTableMetadata();
+      boolean skipStatsCollection = table.isNonNative() && 
!HiveConf.getBoolVar(aspCtx.getConf(),

Review Comment:
   By default we don't skip the stats, If the user intends to do so they can. 
One reason for not running ANALYZE command to compute stats might be due to the 
reason that for large table that operation can be expensive.



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