You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (Jira)" <ji...@apache.org> on 2021/06/09 11:05:00 UTC

[jira] [Commented] (HIVE-25224) Multi insert statements involving tables with different bucketing_versions results in error

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

Zoltan Haindrich commented on HIVE-25224:
-----------------------------------------

this exception should be expected in case the tables are bucketed into >1 buckets; however if they are not bucketed - then it could be suppressed.

> Multi insert statements involving tables with different bucketing_versions results in error
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-25224
>                 URL: https://issues.apache.org/jira/browse/HIVE-25224
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>
> {code}
> drop table if exists t;
> drop table if exists t2;
> drop table if exists t3;
> create table t (a integer);
> create table t2 (a integer);
> create table t3 (a integer);
> alter table t set tblproperties ('bucketing_version'='1');
> explain from t3 insert into t select a insert into t2 select a;
> {code}
> results in
> {code}
> Error: Error while compiling statement: FAILED: RuntimeException Error setting bucketingVersion for group: [[op: FS[2], bucketingVersion=1], [op: FS[11], bucketingVersion=2]] (state=42000,code=40000)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)