You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/08/12 04:06:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17578776#comment-17578776 ] 

ASF subversion and git services commented on KUDU-3306:
-------------------------------------------------------

Commit 77d3ea465bb1a1fa778cccd8432553032f51bd27 in kudu's branch refs/heads/master from zhangyifan27
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=77d3ea465 ]

KUDU-3306: fix PartitionSchema::DecodeRangeKey

Prior to this patch, we didn't copy BINARY values into KuduPartialRow
in PartitionSchema::DecodeRangeKey, which lead to issues while copying
tables with string, binary and varchar columns in their range key.

Change-Id: I5abf7ff9713ee391199c47710ccd81db8b97653e
Reviewed-on: http://gerrit.cloudera.org:8080/18733
Reviewed-by: Alexey Serbin <al...@apache.org>
Tested-by: Alexey Serbin <al...@apache.org>


> 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
>
> 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)