You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2017/12/07 23:32:00 UTC
[jira] [Created] (HIVE-18250) CBO gets turned off with duplicates
in RR error
Ashutosh Chauhan created HIVE-18250:
---------------------------------------
Summary: CBO gets turned off with duplicates in RR error
Key: HIVE-18250
URL: https://issues.apache.org/jira/browse/HIVE-18250
Project: Hive
Issue Type: Bug
Components: CBO, Query Planning
Affects Versions: 2.3.0, 2.2.0, 2.1.0, 2.0.0
Reporter: Ashutosh Chauhan
{code}
create table t1 (a int);
explain select t1.a as a1, min(t1.a) as a from t1 group by t1.a;
{code}
CBO gets turned off with:
{code}
WARN [2e80e34e-dc46-49cf-88bf-2c24c0262d41 main] parse.RowResolver: Found duplicate column alias in RR: null.a => {null, a1, _col0: int} adding null.a => {null, null, _col1: int}
2017-12-07T15:27:47,651 ERROR [2e80e34e-dc46-49cf-88bf-2c24c0262d41 main] parse.CalcitePlanner: CBO failed, skipping CBO.
org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: Cannot add column to RR: null.a => _col1: int due to duplication, see previous warnings
at org.apache.hadoop.hive.ql.parse.CalcitePlanner$CalcitePlannerAction.genSelectLogicalPlan(CalcitePlanner.java:3985) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.parse.CalcitePlanner$CalcitePlannerAction.genLogicalPlan(CalcitePlanner.java:4313) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.parse.CalcitePlanner$CalcitePlannerAction.apply(CalcitePlanner.java:1392) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.parse.CalcitePlanner$CalcitePlannerAction.apply(CalcitePlanner.java:1322) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
{code}
After that non-CBO path completes the query.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)