nsivabalan opened a new pull request #5002:
URL: https://github.com/apache/hudi/pull/5002


   ## What is the purpose of the pull request
   
   when Deltastreamer consumes an empty batch, but checkpoint moved ahead, hudi 
injects NullSchemaProvider as part of consumed InputBatch. Which returns null 
schema (Schema.create(Schema.Type.NULL)) schema when asked for source or target 
schema. So, this gets serialized into commit metadata and later runs into 
issues when table schema is fetched. 
   
   Fix: when serializing the schema to commit metadata, we avoid adding the 
entry if its null schema (Schema.create(Schema.Type.NULL)).  
   
   ## Brief change log
   
   Fixed serializing the avro schema to commit metadata to avoid adding the 
entry if its null schema (Schema.create(Schema.Type.NULL))
   
   ## Verify this pull request
   
   This change added tests and can be verified as follows:
   
     - Added a test to TestHoodieDeltastreamer to test the fix. 
   
   ## 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