Skip to content

Conversation

@satishkotha
Copy link
Member

What is the purpose of the pull request

Add range index support with metadata table

Brief change log

  • This is a WIP PR primarily used for data collection.
  • Lot of fundamental metadata table bottlenecks have to be resolved. For example, bootstrapping rangeIndex for 30 partitions of large table (4000 columns) runs into memory issues and driver result too large errors. We also need to implement async metadata table design in V2
  • Tried to implement primitive bucketing by column name to improve index locality
  • Only implemented commit integration. Clean and other action integration needs to be added.

Verify this pull request

  • Verified end-to-end by bootstrapping range index on few partitions of large table (4000 columns)
  • Unit Tests TBD

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.


public boolean requireSortedRecords() {
return getBaseFileFormat() == HoodieFileFormat.HFILE;
return getBaseFileFormat() == HoodieFileFormat.HFILE || config.requiresSorting();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@satishkotha : may I know why we need this extra condition. base file is always going to be HFile for metadata table right? Or do we have plans for any other partition where base file will not be Hfile in metadata table?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nsivabalan We were initially considering parquet file format as an option of range index. So I added it as a config to support sorting on parquet files in metadata table. Now that we have finalized HFile format (at least for short term), we can probably remove config. Sorry for delay, I missed your mention. Feel free to ping me on slack if you have any followups

@vinothchandar vinothchandar added the status:in-progress Work in progress label Oct 26, 2021
@hudi-bot
Copy link
Collaborator

hudi-bot commented Nov 5, 2021

CI report:

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

@nsivabalan
Copy link
Contributor

closing this as have another PR #4352

@nsivabalan nsivabalan closed this Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants