You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2015/04/15 17:51:05 UTC

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

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

Ashutosh Chauhan commented on HIVE-10341:
-----------------------------------------

+1

> 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
>          Components: CBO
>    Affects Versions: cbo-branch
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>             Fix For: cbo-branch
>
>         Attachments: HIVE-10341.cbo.patch
>
>
> 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)