HuangFru commented on issue #8332:
URL: https://github.com/apache/hudi/issues/8332#issuecomment-1499891797

   @KnightChess 
   1. I'm not sure what 'primaryKey not exist in the table' means, the data is 
intact. And what does 'add parquet first' mean? 
   2.
   Hudi:
   SQL(just change the table name):
   ```
   create table lineitem_kp_mor (
      l_orderkey bigint,
      l_partkey bigint,
      l_suppkey bigint,
      l_linenumber int,
      l_quantity double,
      l_extendedprice double,
      l_discount double,
      l_tax double,
      l_returnflag string,
      l_linestatus string,
      l_shipdate date,
      l_receiptdate date,
      l_shipinstruct string,
      l_shipmode string,
      l_comment string,
      l_commitdate date
   ) USING hudi tblproperties (
        type = 'mor',
        primaryKey = 'l_orderkey,l_linenumber',
        hoodie.memory.merge.max.size = '2004857600000',
        hoodie.write.markers.type = 'DIRECT',
        hoodie.sql.insert.mode = 'non-strict'
   ) PARTITIONED BY (l_commitdate);
   
   set hoodie.sql.bulk.insert.enable=true;
   set hoodie.sql.insert.mode=non-strict;
   set hoodie.bulkinsert.shuffle.parallelism=200;
   
   insert into lineitem_kp_mor select 
l_orderkey,l_partkey,l_suppkey,l_linenumber,l_quantity,l_extendedprice,l_discount,l_tax,l_returnflag,l_linestatus,l_shipdate,l_receiptdate,l_shipinstruct,l_shipmode,l_comment,l_commitdate
 from spark_catalog.test_origin.lineitem_sf100 order by l_commitdate;
   ```
   
![image](https://user-images.githubusercontent.com/68625618/230532528-6397f571-9fec-4d93-a333-3dbe096298bb.png)
   
![image](https://user-images.githubusercontent.com/68625618/230532844-070dc110-71c6-452d-82fc-27922362e149.png)
   
![image](https://user-images.githubusercontent.com/68625618/230532879-aa2d7f11-727b-4ef4-a674-85dd64eb631a.png)
   
![image](https://user-images.githubusercontent.com/68625618/230533072-e761e244-3e4e-477a-9777-6c277dd81040.png)
   
   Iceberg:
   
![image](https://user-images.githubusercontent.com/68625618/230533780-35eea907-09d7-444d-9670-a97cf3fbf624.png)
   
![image](https://user-images.githubusercontent.com/68625618/230533801-c87ec10f-69f5-4062-a09f-61b23c55e20d.png)
   
![image](https://user-images.githubusercontent.com/68625618/230533837-68fd69ca-c1f4-41e4-a865-daa22f6586c2.png)
   
![image](https://user-images.githubusercontent.com/68625618/230533936-737d7069-1db8-483f-80b9-54724ac83b8d.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to