[
https://issues.apache.org/jira/browse/HUDI-5759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Qijun Fu closed HUDI-5759.
--------------------------
Fix Version/s: 0.13.0
Resolution: Fixed
> Hudi do not support add column on mor table with log
> ----------------------------------------------------
>
> Key: HUDI-5759
> URL: https://issues.apache.org/jira/browse/HUDI-5759
> Project: Apache Hudi
> Issue Type: Bug
> Components: spark
> Reporter: Qijun Fu
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 0.14.0, 0.13.0
>
>
> We test the following sqls in the latest master branch
> ```sql
> create table h0 (
> id int,
> name string,
> price double,
> ts long
> ) using hudi
> options (
> primaryKey ='id',
> type = 'mor',
> preCombineField = 'ts'
> )
> partitioned by(ts)
> location '/tmp/h0';
> insert into h0 select 1, 'a1', 10, 1000;
> update h0 set price = 20 where id = 1;
> alter table h0 add column new_col1 int;
> update h0 set price = 22 where id = 1;
> select * from h0;
> ```
> And found that we can't read the table after add column and update.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)