You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Qijun Fu (Jira)" <ji...@apache.org> on 2023/02/10 02:45:00 UTC
[jira] [Created] (HUDI-5759) Hudi do not support add column on mor table with log
Qijun Fu created HUDI-5759:
------------------------------
Summary: 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
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)