rahil-c opened a new pull request #3541:
URL: https://github.com/apache/hudi/pull/3541


   ## What is the purpose of the pull request
   
   JIRA : https://issues.apache.org/jira/browse/HUDI-2359
   
   In issue thread https://github.com/apache/hudi/issues/3321, there was a 
discussion around the functionality of `hoodie_is_deleted` field.
   
   1. We wanted to ensure that when this field was being set to `true`, that 
the specified record would be deleted.
   2. We also wanted to make sure that this field only needed to be set to 
`true` for an incoming record, and not for existing records.
   
   The goal of this PR is to add unit tests that follow similar reproductions 
as discussed in the above github issue thread.
   
   @nsivabalan example 
https://gist.github.com/nsivabalan/e5ac69677ed05e9f2749fae67d3abc19 
   @nmukerje example 
https://github.com/nmukerje/misc/blob/master/Hudi/Hudi_Pyspark_Delete_Upsert_Test.ipynb
   
   ## Verify this pull request
   
   
   This change added test methods to existing test classes and can be verified 
as follows:
   ```
   mvn -Dtest=TestMORDataSource#testHoodieIsDeletedMOR test 
-DfailIfNoTests=false -pl hudi-spark-datasource/hudi-spark/
   
   mvn -Dtest=TestCOWDataSource#testHoodieIsDeletedCOW test 
-DfailIfNoTests=false -pl hudi-spark-datasource/hudi-spark/
   ```
   
   ## 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