[ 
https://issues.apache.org/jira/browse/HUDI-8817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913503#comment-17913503
 ] 

Davis Zhang commented on HUDI-8817:
-----------------------------------

Thanks Sagar, discussed with Ethan and we decide to

    setTableVersion for all HoodieTableMetaClient.newTableBuilder(). Write test 
coverage.
   hopefully as the version is configured on some code path later we will hit 
the validation function for table cfg + writer cfg. Target 1.0.1

> Hudi 1.0.0 cannot create older version table
> --------------------------------------------
>
>                 Key: HUDI-8817
>                 URL: https://issues.apache.org/jira/browse/HUDI-8817
>             Project: Apache Hudi
>          Issue Type: Sub-task
>    Affects Versions: 1.0.0
>            Reporter: Shawn Chang
>            Assignee: Davis Zhang
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.0.1
>
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> When using Hudi 1.0 + backward writer, it still creates version 8 table which 
> cannot be read by an older version Hudi reader.
> Reproduction steps:
> 1. Create the table with SQL, specifying the table version to be 6 (I've 
> tested the same with DF and Hudi 1.0 also cannot create version 6 table)
> {code:java}
> CREATE TABLE hudi_14_table_sql_005 (
>     event_id INT,
>     event_date STRING,
>     event_name STRING,
>     event_ts STRING,
>     event_type STRING
> ) USING hudi
>  OPTIONS(
>     type = 'cow', -- or 'mor'
>     primaryKey = 'event_id,event_date',
>     preCombileField = 'event_ts',
>     hoodie.write.table.version = 6
> )
> PARTITIONED BY (event_type)
> LOCATION 's3://<some_bucket>/hudi_14_table_sql_005';
> {code}
> 2. Check `hoodie.properties` under the table's S3 location, and you should 
> see `hoodie.table.version=8`



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

Reply via email to