[ 
https://issues.apache.org/jira/browse/HIVE-9140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14257739#comment-14257739
 ] 

Laljo John Pullokkaran commented on HIVE-9140:
----------------------------------------------

SemanticAnalyzer: 2633
HepProgramBuilder hepPgmBldr = new 
HepProgramBuilder().addMatchOrder(HepMatchOrder.BOTTOM_UP)
          .addRuleInstance(new JoinToMultiJoinRule(HiveJoin.class));
      hepPgmBldr.addRuleInstance(ReduceExpressionsRule.JOIN_INSTANCE);
      hepPgmBldr.addRuleInstance(new 
LoptOptimizeJoinRule(HiveJoin.HIVE_JOIN_FACTORY,
          HiveProject.DEFAULT_PROJECT_FACTORY, 
HiveFilter.DEFAULT_FILTER_FACTORY));

Shouldn't ReduceExpressionsRule.JOIN_INSTANCE be after LoptOptimizeJoinRule?

> Add ReduceExpressionRules from Calcite into Hive
> ------------------------------------------------
>
>                 Key: HIVE-9140
>                 URL: https://issues.apache.org/jira/browse/HIVE-9140
>             Project: Hive
>          Issue Type: Improvement
>          Components: CBO, Logical Optimizer
>    Affects Versions: 0.14.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-9140.1.patch, HIVE-9140.patch
>
>
> These rules provide a form of constant folding.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to