Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-5759

Hudi do not support add column on mor table with log

    XMLWordPrintableJSON

Details

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Qijun Fu Qijun Fu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: