[feature](be) Add FileScannerV2 native reader#64902
Merged
Merged
Conversation
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: FileScannerV2 did not support Doris Native files. This change adds a native v2 FileReader implementation instead of wrapping the legacy NativeReader. The reader validates the Native header, reads serialized PBlock payloads, caches and replays the first block for schema probing, exposes nullable file-local schema, projects requested columns, and applies file-local filters. Shared materialized-column filtering is also used by JSON and delimited text readers so predicate accounting stays consistent. WAL is intentionally not implemented on the v2 path because current group commit WAL scans are load scans and FileScanOperator only selects FileScannerV2 when src_tuple_id does not resolve to an input tuple.
### Release note
None
### Check List (For Author)
- Test:
- Style check: build-support/check-format.sh
- Unit Test: not run locally because sandbox execution cannot write .git/modules for submodule setup and cannot download datasketches-cpp; the attempted run-be-ut command failed before compiling tests.
- Behavior changed: No
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
dff58ab
into
apache:refact_reader_branch
40 of 50 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: FileScannerV2 did not support Doris Native files. This change adds a native v2 FileReader implementation instead of wrapping the legacy NativeReader. The reader validates the Native header, reads serialized PBlock payloads, caches and replays the first block for schema probing, exposes nullable file-local schema, projects requested columns, and applies file-local filters. Shared materialized-column filtering is also used by JSON and delimited text readers so predicate accounting stays consistent. WAL is intentionally not implemented on the v2 path because current group commit WAL scans are load scans and FileScanOperator only selects FileScannerV2 when src_tuple_id does not resolve to an input tuple.
Release note
None
Check List (For Author)
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)