You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Alexey Serbin (Jira)" <ji...@apache.org> on 2022/08/12 05:38:00 UTC

[jira] [Resolved] (KUDU-3306) String column types in range partitions lead to issues while copying tables

     [ https://issues.apache.org/jira/browse/KUDU-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Serbin resolved KUDU-3306.
---------------------------------
    Fix Version/s: 1.17.0
       Resolution: Fixed

> String column types in range partitions lead to issues while copying tables
> ---------------------------------------------------------------------------
>
>                 Key: KUDU-3306
>                 URL: https://issues.apache.org/jira/browse/KUDU-3306
>             Project: Kudu
>          Issue Type: Bug
>          Components: CLI, partition
>            Reporter: Bankim Bhavsar
>            Assignee: YifanZhang
>            Priority: Major
>             Fix For: 1.17.0
>
>
> Range partitions with string column types leads to issues while creating destination table.
> {noformat}
> create TABLE test3 (
> created_time STRING PRIMARY KEY
> )
> PARTITION BY RANGE (created_time) 
> (
> PARTITION VALUE = "2020-01-01",
> PARTITION VALUE = "2021-01-01"
> )
> STORED as kudu;
> # kudu table describe master-1 impala::default.test3
> TABLE impala::default.test3 (
>     created_time STRING NOT NULL,
>     PRIMARY KEY (created_time)
> )
> RANGE (created_time) (
>     PARTITION "2020-01-01" <= VALUES < "2020-01-01\000",
>     PARTITION "2021-01-01" <= VALUES < "2021-01-01\000"
> )
> OWNER root
> REPLICAS 3
> # kudu table copy master-1 impala::default.test3 master-1 -dst_table=kudu_test4 -write_type=""
> Invalid argument: Error creating table kudu_test4 on the master: overlapping range partitions: first range partition: "\000��\004\000\000\000\00001" <= VALUES < "2021-01-01\000", second range partition: "\000��\004\000\000\000\00001" <= VALUES < "2021-01-01\000"
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)