[
https://issues.apache.org/jira/browse/HIVE-28595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17967033#comment-17967033
]
Stamatis Zampetakis commented on HIVE-28595:
--------------------------------------------
Normally, when there are duplicates we tend to resolve the new ticket and keep
the old one but given that now this has a PR associated and reviews are ongoing
is less disruptive to resolve the old tickets and keep this one as the main one
so I marked both HIVE-22991 and HIVE-27790 as duplicates of this.
> Not able to insert data with hive.cbo.enable=false
> --------------------------------------------------
>
> Key: HIVE-28595
> URL: https://issues.apache.org/jira/browse/HIVE-28595
> Project: Hive
> Issue Type: Bug
> Affects Versions: 4.0.0-alpha-2
> Reporter: chiranjeevi
> Assignee: Kiran Velumuri
> Priority: Minor
> Labels: pull-request-available
>
> create table if not exists trunc_call_center( cc_call_center_sk bigint ,
> cc_call_center_id char(16) ) row format delimited fields terminated by '|';
> insert into trunc_call_center(cc_call_center_sk, cc_call_center_id)
> VALUES(1234, 'a');
> set hive.cbo.enable=false;
> *ERROR:*
> *Error: Error while compiling statement: FAILED: SemanticException 0:0
> Expected 2 columns for insclause-0/db_name@trunc_call_center; select produces
> 1 columns. Error encountered near token ''a''*
> *Please ignore line number 1, marked in the above error message. Error at
> line 375. (state=,code=0)*
> *Able to insert data with set hive.cbo.enable=true;*
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)