jspaine commented on issue #9271:
URL: https://github.com/apache/hudi/issues/9271#issuecomment-1649254653

   @ad1happy2go no the inserted df doesn't contain duplicates, trying again 
with `--conf spark.sql.codegen.maxFields=150`:
   ```sql
   select 
       count(*) total,
       count(distinct _id) ids
   from hudi_db.table
   
   -- after insert:
   -- # total           ids
   -- 1 500849433       500849433
   
   -- after upsert:
   -- # total           ids
   -- 1 500906271       500859829
   ```
   
   Inserts/updates in the upsert commit:
   ```sql
   select op, count(*)
   from hudi_db.table
   where _hoodie_commit_time = (select max(_hoodie_commit_time) from 
hudi_db.table)
   group by op
   
   -- # op      _col1
   -- 1 I       14263
   -- 2 U       42742
   ```


-- 
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