xiarixiaoyao opened a new pull request #2720:
URL: https://github.com/apache/hudi/pull/2720


   
   
   ## *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
   fix the bug that, HoodieCombineHiveInputFormat cannot build correct 
partition field.
   
   now hudi use HoodieCombineHiveInputFormat to achieve Incremental query of 
the mor table.
   when we have some small files in different partitions(file1 from partition 
p=6 , file2 from partition p=7), HoodieCombineHiveInputFormat  will combine 
those small file readers.   HoodieCombineHiveInputFormat  build partition field 
base on  the first file reader(assume file1 reader which from parition p=6) , 
however now HoodieCombineHiveInputFormat  holds other file readers(file2 reader 
which from paritition p=7) which come from different partitions.
   When switching readers, we should  update ioctx
   
https://github.com/apache/hudi/blob/6e803e08b1328b32a5c3a6acd8168fdabc8a1e50/hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/HoodieCombineRealtimeRecordReader.java#L73
   
   ## Brief change log
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## Verify this pull request
   
   This pull request is already covered by existing tests, such as *(please 
describe tests)*.
   
   ## 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