You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2015/04/15 11:25:59 UTC
[jira] [Updated] (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:all-tabpanel ]
Jesus Camacho Rodriguez updated HIVE-10341:
-------------------------------------------
Attachment: HIVE-10341.cbo.patch
[~ashutoshc], could you take a look? Thanks
> 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)