Add ranged-read support to PinotFS#18861
Open
davecromberge wants to merge 1 commit into
Open
Conversation
Add additive default methods openForRead(uri, offset, length) and supportsRangedRead() to the PinotFS SPI. Defaults throw / return false so existing implementations are unaffected. Implement for LocalPinotFS (via RandomAccessFile) and GcsPinotFS (via ReadChannel seek/limit), enabling targeted reads of byte ranges (e.g. Parquet footers and column chunks) without downloading whole objects. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
davecromberge
added a commit
to permutive-engineering/pinot
that referenced
this pull request
Jun 26, 2026
Add additive default methods openForRead(uri, offset, length) and supportsRangedRead() to the PinotFS SPI (default-throws / false, so existing implementations are unaffected). Implemented for LocalPinotFS (RandomAccessFile) and GcsPinotFS (ReadChannel seek/limit), enabling targeted byte-range reads (e.g. Parquet footers and column chunks) without downloading whole objects. Upstream PR: apache#18861 (open) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #18861 +/- ##
=============================================
- Coverage 64.79% 37.16% -27.64%
+ Complexity 1322 1321 -1
=============================================
Files 3393 3393
Lines 211265 211292 +27
Branches 33212 33216 +4
=============================================
- Hits 136896 78519 -58377
- Misses 63320 125570 +62250
+ Partials 11049 7203 -3846
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
Adds an additive ranged-read capability to the PinotFS SPI so callers can read a specific byte range of a file without downloading the whole object.
implementations remain source- and binary-compatible — no behavior change unless an implementation opts in.
Motivation
Enables targeted reads of file regions (e.g. Parquet footers and column chunks) for engines/plugins that query columnar data in place, avoiding full-object transfers.
Testing
LocalPinotFSTest covers mid-range, from-start, EOF truncation, zero-length, whole-file, and invalid-argument cases (runs in CI). GcsPinotFSTest adds a ranged-read case (credentials-gated, consistent with the existing GCS integration test).
PR Tags
featureperformancerelease-notes: