codope opened a new pull request, #5771:
URL: https://github.com/apache/hudi/pull/5771

   ## What is the purpose of the pull request
   
   With this PR, users can now simply write without specifying record key or 
precombine field as:
   ```
   // non-partitioned table
   df.write.format("hudi").option(TABLE_NAME, 
tableName).mode(Overwrite).save(basePath)
   // partitioned table
   df.write.format("hudi").option(TABLE_NAME, 
tableName).partitionBy("partitionpath").mode(Overwrite).save(basePath)
   ```
   When no record key or precombine field is provided, then it is assumed that 
the workload does not have updates or deletes and Hudi will simply bulk insert.
   
   ## Brief change log
   
   - Changes in key generators to handle no record key. 
   - Changes in keygen class infer function.
   - Changes in `HoodieSparkSqlWriter` to switch default operation type when no 
record key or precombine field.
   - Changes in `HoodieDatasetBulkInsertHelper` to handle no record key or 
partition apth.
   
   ## Verify this pull request
   
   Added unit tests for above changes and tested spark datasource locally.
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.
   


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