gaoxiaoqing created IMPALA-11912:
------------------------------------
Summary: Add support for cloning range partitions from kudu table
Key: IMPALA-11912
URL: https://issues.apache.org/jira/browse/IMPALA-11912
Project: IMPALA
Issue Type: New Feature
Reporter: gaoxiaoqing
In https://issues.apache.org/jira/browse/IMPALA-4052, it supports cloning the
schema (including hash partitions) from kudu table after execute 'CREATE TABLE
$target_table LIKE $source_kudu_table'. But it don't support cloning range
partitions from source table if there is any.
For example, the following range partitions can be cloned after execute 'create
table custom_hash_range_single_clone like custom_hash_range_single.'
{code:java}
create table custom_hash_range_single (id int, c2 int, primary key(id, c2))
partition by hash(id) partitions 3,
range (c2)
(
partition 0 <= values < 10
, partition 10 <= values < 20 hash partitions 2
, partition 20 <= values < 30 hash(c2) partitions 3
, partition 30 <= values < 40 hash(id) partitions 4
, partition 40 <= values < 50 hash(id, c2) partitions 5
)
stored as kudu; {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)