You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "zouxxyy (Jira)" <ji...@apache.org> on 2023/03/20 03:47:00 UTC

[jira] [Updated] (HUDI-5957) Run cluster should fail when using bucket index

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

zouxxyy updated HUDI-5957:
--------------------------
    Summary: Run cluster should fail when using bucket index  (was: Run cluster should fail when using buckets)

> Run cluster should fail when using bucket index
> -----------------------------------------------
>
>                 Key: HUDI-5957
>                 URL: https://issues.apache.org/jira/browse/HUDI-5957
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: zouxxyy
>            Priority: Minor
>
> {code:java}
> drop table hudi_cow_test_tbl;
> create table hudi_cow_test_tbl (
>   id bigint,  
>   name string,  
>   ts bigint,  
>   dt string,  
>   hh string
> ) using hudi
> tblproperties (
>   type = 'cow',
>   primaryKey = 'id',
>   preCombineField = 'ts',
>   hoodie.index.type = 'BUCKET'
> )partitioned by (dt, hh);
> insert into hudi_cow_test_tbl values (1, 'a1', 1001, '2021-12-09', '10');
> insert into hudi_cow_test_tbl values (2, 'a2', 1001, '2021-12-09', '10');
> # this operation should fail, otherwise the table will become unavailable
> call run_clustering(table => 'hudi_cow_test_tbl');
> insert into hudi_cow_test_tbl values (3, 'a3', 1001, '2021-12-09', '10'); {code}



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