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

Yue Zhang resolved HUDI-5957.
-----------------------------

> 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
>              Labels: pull-request-available
>
> {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)

Reply via email to