You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/06/15 04:17:36 UTC
[GitHub] [hive] kasakrisz commented on a change in pull request #1096: HIVE-23493: Rewrite plan to join back tables with many projected columns joined multiple times
kasakrisz commented on a change in pull request #1096:
URL: https://github.com/apache/hive/pull/1096#discussion_r439922505
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
##########
@@ -2389,6 +2390,11 @@ private RelNode applyPostJoinOrderingTransform(RelNode basePlan, RelMetadataProv
final HepProgramBuilder program = new HepProgramBuilder();
+ if (conf.getBoolVar(ConfVars.HIVE_CARDINALITY_PRESERVING_JOIN_OPTIMIZATION)) {
+ generatePartialProgram(program, false, HepMatchOrder.TOP_DOWN,
+ new HiveCardinalityPreservingJoinRule());
Review comment:
`HiveCardinalityPreservingJoinRule` is not stateless: it extends `HiveFieldTrimmerRule` which tracks whether it was triggered or not to avoid unnecessary multiple traversals.
----------------------------------------------------------------
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.
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