hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[HUDI-9469] Improve performance for getting hoodie record / record ke…

Open cshuo opened this issue 6 months ago • 1 comments

…y iterator for FG reader

Currently, getClosableHoodieRecordIterator has redundant conversion: engine record <->BufferedRecord, and getClosableKeyIterator has redundant process readerContext.getRecordKey. We actually can make a refactor to get these iterators more efficiently.

Change Logs

  • Make the iterator element type for HoodieFileGroupReader generic.
  • Introduce IteratorMode to HoodieFileGroupReader, which indicates what iterator the FileGroup reader will be return.

Impact

Improve performance for getting hoodie record / record key iterator for FG reader

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. If not, put "none".

  • 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 to make changes to the website.

Contributor's checklist

  • [ ] Read through contributor's guide
  • [ ] Change Logs and Impact were stated clearly
  • [ ] Adequate tests were added if applicable
  • [ ] CI passed

cshuo avatar May 28 '25 10:05 cshuo

CI report:

  • 19bba1a9222b5476d4be6c53bcc61af7ef562ab4 Azure: FAILURE
Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

hudi-bot avatar Jun 03 '25 10:06 hudi-bot