bithw1 commented on issue #17734:
URL: https://github.com/apache/hudi/issues/17734#issuecomment-3697852566

   Thanks @deepakpanda93 
   
   I have specially set the following configurations, so that duplicate records 
will not be dropped. 
   
   Do the following configurations only work for different commits? When 
primary key is specified, then, duplicates in the same commit will also be 
dropped even with following configurations?
   
   If this is the case, then it doesn't make much sense to me. If duplicates 
are allowed, there is no difference whether the duplicate happen in one commit 
or different commits, the end result data there contains duplicates.
   
   Is it possible to allow duplicates in one commit even with the primary key 
is specified?
   
   ```
   set hoodie.spark.sql.insert.into.operation=insert;
   set hoodie.datasource.write.insert.drop.duplicates=false;
   set hoodie.datasource.write.insert.dup.policy=none;
   ```
   
   


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