You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2015/04/15 11:23:59 UTC

[jira] [Created] (HIVE-10341) CBO (Calcite Return Path): TraitSets not correctly propagated in HiveSortExchange causes Assertion error

Jesus Camacho Rodriguez created HIVE-10341:
----------------------------------------------

             Summary: CBO (Calcite Return Path): TraitSets not correctly propagated in HiveSortExchange causes Assertion error
                 Key: HIVE-10341
                 URL: https://issues.apache.org/jira/browse/HIVE-10341
             Project: Hive
          Issue Type: Sub-task
    Affects Versions: cbo-branch
            Reporter: Jesus Camacho Rodriguez
            Assignee: Jesus Camacho Rodriguez
             Fix For: cbo-branch


When return path is on ({{hive.cbo.returnpath.hiveop=true}}), the TraitSets are not correctly set up by HiveSortExchange. For instance, correlationoptimizer14.q produces the following exception:

{noformat}
Unexpected exception java.lang.AssertionError: traits=NONE.[], collation=[0]
 at org.apache.calcite.rel.core.SortExchange.<init>(SortExchange.java:63)
 at org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortExchange.<init>(HiveSortExchange.java:18)
 at org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortExchange.create(HiveSortExchange.java:39)
 at org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveInsertExchange4JoinRule.onMatch(HiveInsertExchange4JoinRule.java:95)
 at org.apache.calcite.plan.AbstractRelOptPlanner.fireRule(AbstractRelOptPlanner.java:326)
 at org.apache.calcite.plan.hep.HepPlanner.applyRule(HepPlanner.java:515)
 at org.apache.calcite.plan.hep.HepPlanner.applyRules(HepPlanner.java:392)
 at org.apache.calcite.plan.hep.HepPlanner.executeInstruction(HepPlanner.java:255)
 at org.apache.calcite.plan.hep.HepInstruction$RuleInstance.execute(HepInstruction.java:125)
 at org.apache.calcite.plan.hep.HepPlanner.executeProgram(HepPlanner.java:207)
 at org.apache.calcite.plan.hep.HepPlanner.findBestExp(HepPlanner.java:194)
...
{noformat}



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