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:40:00 UTC

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

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

zouxxyy updated HUDI-5957:
--------------------------
    Description: 
{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}

  was:
{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 huditblproperties (  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');
call run_clustering(table => 'hudi_cow_test_tbl');
insert into hudi_cow_test_tbl values (3, 'a3', 1001, '2021-12-09', '10'); {code}


> Run cluster should fail when using buckets
> ------------------------------------------
>
>                 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)