Shawn Chang created HUDI-8817:
---------------------------------
Summary: 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: Bug
Reporter: Shawn Chang
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)