You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Zhaojing Yu (Jira)" <ji...@apache.org> on 2022/10/01 12:12:00 UTC

[jira] [Updated] (HUDI-4704) bulk insert overwrite table will delete the table and then recreate a table

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

Zhaojing Yu updated HUDI-4704:
------------------------------
    Fix Version/s: 0.13.0
                       (was: 0.12.1)

> bulk insert overwrite table will delete the table and then recreate a table
> ---------------------------------------------------------------------------
>
>                 Key: HUDI-4704
>                 URL: https://issues.apache.org/jira/browse/HUDI-4704
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: spark-sql, writer-core
>    Affects Versions: 0.12.0
>            Reporter: zouxxyy
>            Assignee: Raymond Xu
>            Priority: Major
>             Fix For: 0.13.0
>
>
> When hoodie.sql.bulk.insert.enable is enabled, executing insert overwrite will delete the table and then recreate a table, so time travel cannot be performed.
>  
> {code:java}
> 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.sql.insert.mode' = 'non-strict',
>   'hoodie.sql.bulk.insert.enable' = 'true'
> );
> insert into hudi_cow_test_tbl select 1, 'a1', 1001, '2021-12-09', '11';
> insert overwrite hudi_cow_test_tbl select 3, 'a3', 1001, '2021-12-09', '11';
> {code}



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