You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "shameersss1 (via GitHub)" <gi...@apache.org> on 2023/03/20 10:59:51 UTC

[GitHub] [hive] shameersss1 commented on a diff in pull request #4120: HIVE-27142: Map Join not working as expected when joining non-native tables with native tables

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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org