prashantwason opened a new pull request #2350:
URL: https://github.com/apache/hudi/pull/2350


   
   ## What is the purpose of the pull request
   
   1. Fixed a bug in schema compatibility check where some field types were not 
allowed.
   2. Some field types changes are allowed (e.g. int -> long) while maintaining 
schema backward compatibility within HUDI. The check was reversed with the 
reader schema being passed for the write schema.
   3. Also added a unit test to check for all the allowed field type changes.
   
   ## Brief change log
   
   
   ## Verify this pull request
   
   This pull request is already covered by existing tests, such as *(please 
describe tests)*.
   
   mvn test -pl hudi-client/hudi-spark-client -Dtest=TestTableSchemaEvolution
   
   ## 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to