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

   ### Change Logs
   
   In order to support multiple base file format for a Hudi table, following 
changes have been done:
   
   1. Added a new table config which is boolean to indicate whether this table 
supports multiple base file formats. By default, it is false.
   2. File formats are decided based on file extension and then the 
writer/reader is created.
   3. On the Spark reader side, a new relation has been introduced. This 
relation is created only when the above table config is set to true. For COW 
table, the splits from the latest base files are grouped by file format and 
then a `FilePartition` is created per format. For MOR table, base file readers 
are created per split and fed into `HoodieMergeOnReadRDD`.
   4. Change has been tested for snapshot reads for both MOR and COW table. 
Tests for incremental queries will be added soon.
   
   ### Impact
   
   This is a format change. Only newer Hudi table versions will support it. 
Note that the change in compatible i.e. the readers used for the new relation 
should work even if multiple table formats is not enabled. 
   The performance impact is minimal. There is on extra iteration over the 
splits in order to infer the file format from the file extension.
   
   ### Risk level (write none, low medium or high below)
   
   low
   
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, 
config, or user-facing change_
   
   - _The config description must be updated if new configs are added or the 
default value of the configs are changed_
   - _Any new feature or user-facing change requires updating the Hudi website. 
Please create a Jira ticket, attach the
     ticket number here and follow the 
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to 
make
     changes to the website._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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