yihua opened a new pull request, #1095:
URL: https://github.com/apache/hudi-rs/pull/1095
## Description
closes #1091
A record index lookup against a base HFile decoded every record in each
selected block into an owned record, then filtered for the requested keys. Log
blocks already walked their keys in place. After metadata table compaction,
lookups read from base HFiles, so upserts and deletes that tag by record key
paid for that.
Base blocks now take the same in-place walk and copy out only the requested
keys. Results are unchanged for well-formed files. A non-UTF-8 key in a base
block is now skipped, as the log-block path already does, instead of failing
the lookup. A `&str` key can never match it.
Benchmark: to be added.
## How are the changes test-covered
- [ ] N/A
- [x] Automated tests (unit and/or integration tests)
- [ ] Manual tests
- [ ] Details are described below
A differential test compares the walk with a full decode and filter on
resident and ranged multi-block HFiles, at block boundaries, on absent keys and
on duplicate keys. A record index test builds a multi-block base and checks
lookups against a full decode, both read whole and in ranges, including keys
whose entries span blocks and end in a move or a tombstone. A third test covers
the non-UTF-8 key.
--
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]