apache / apache/hudi

Refactor legacy log scanner to use reader-context delete records API

Open
#19,196 1 comment 0 reactions 1 assignee Claimed by @fhan688 View on GitHub
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

### Parent

Sub-issue of #14310.

### Background

`HoodieNativeLogDeleteBlock` now exposes the reader-context-aware API:

```java
getRecordsToDelete(HoodieReaderContext readerContext)
```

Legacy log scanner paths should be migrated to this API so delete record materialization goes through the same reader-context abstraction used by native log readers.

### Scope

- Refactor legacy log scanner code to call `HoodieNativeLogDeleteBlock#getRecordsToDelete(HoodieReaderContext readerContext)`.
- Mark `DeleteRecord[] getRecordsToDelete()` as deprecated.
- Preserve existing delete semantics and add or update focused coverage for the migrated scanner path.

### Notes

This is part of the broader LSM/native log layout work tracked by #14310.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.