Gabriel39 opened a new pull request, #67906:
URL: https://github.com/apache/doris/pull/67906
### What problem does this PR solve?
Problem Summary:
FileScannerV2 did not support selective reads by absolute file row position.
As a result, TopN two-phase materialization still had to use the legacy
FileScanner for its second-phase Parquet/ORC fetch.
This change carries the selected row positions through TableReader and
FileScanRequest, builds selective Parquet row ranges, seeks requested ORC rows,
and routes supported second-phase fetches through FileScannerV2. Table-format
variants that V2 does not support retain the existing V1 fallback.
### Release note
Support row-id fetch for Parquet and ORC in FileScannerV2.
### Check List (For Author)
- Test
- [x] Unit Test
- `ParquetScanTest.ReadsOnlyRequestedAbsoluteFileRowsAcrossRowGroups`
- `NewOrcReaderTest.ReadsOnlyRequestedAbsoluteFileRows`
- Behavior changed:
- [x] Yes. TopN two-phase materialization uses FileScannerV2 for
supported Parquet and ORC scans.
- Does this need documentation?
- [x] No.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]