zhedoubushishi opened a new pull request #2233:
URL: https://github.com/apache/hudi/pull/2233


   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contributing.html before opening a 
pull request.*
   
   ## What is the purpose of the pull request
   
   JIRA https://issues.apache.org/jira/browse/HUDI-1376
   
   When updating a Hudi table through Spark datasource, it will use the schema 
of the input dataframe as the schema stored in the commit files. Thus, when 
upserted with rows containing metadata columns, the upsert commit file will 
store the metadata columns schema in the commit file which is unnecessary for 
common cases. And also this will bring an issue for the reading of bootstrap 
table.
   
   Since the schema of metadata columns is always the same, we should remove 
the schema of metadata columns in the commit file for any insert/upsert/... 
action.
   
   ## Brief change log
   Remove the avro schema of metadata columns when writing to commit files
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## Verify this pull request
   
   This change added tests and can be verified as follows:
     - Add a test case to cover this change.
   
   ## Committer checklist
   
    - [x] Has a corresponding JIRA in PR title & commit
    
    - [x] 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