alexeykudinkin opened a new pull request, #5428:
URL: https://github.com/apache/hudi/pull/5428

   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contribute/how-to-contribute before 
opening a pull request.*
   
   ## What is the purpose of the pull request
   
   Currently, all Hudi `Relation`s bear performance gap relative to Spark's 
`HadoopFsRelation` and the reason to that is `SchemaPruning` optimization rule 
(pruning nested schemas) that is unfortunately predicated on usage of 
`HadoopFsRelation`, meaning that it's not applied in cases when any other 
relation is used.
   
   This change is porting this rule to Hudi relations (MOR, Incremental, etc) 
by the virtue of leveraging `HoodieSparkSessionExtensions` mechanism injecting 
modified version of the original `SchemaPruning` rule that is adopted to work 
w/ Hudi's custom relations.
   
   ## Brief change log
   
    - Added customOptimizerRules to HoodieAnalysis
    - Added NestedSchemaPrunning Spark's Optimizer rule
    - Handle Spark's Optimizer pruned data schema (to effectively prune nested 
schemas)
    - Enable HoodieClientTestHarness to inject `HoodieSparkSessionExtensions`
    - Injecting Spark Session extensions for `TestMORDataSource`, 
`TestCOWDataSource`
    - Disabled fallback to `HadoopFsRelation`
   
   ## Verify this pull request
   
   This pull request is already covered by existing tests, such as *(please 
describe tests)*.
   This change added tests and can be verified as follows:
   
   ## 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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to