[query] reduce uses of fs.open with compression - #15196
Draft
ehigham wants to merge 1 commit into
Draft
Conversation
This was referenced Nov 18, 2025
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ehigham
force-pushed
the
ehigham/limit-open-compression-uses
branch
from
November 20, 2025 04:01
10dec30 to
cb7c670
Compare
ehigham
force-pushed
the
ehigham/scala-fs-extract-primitives
branch
from
November 20, 2025 04:01
6079d3d to
0bcda90
Compare
ehigham
force-pushed
the
ehigham/scala-fs-extract-primitives
branch
from
January 5, 2026 18:04
0bcda90 to
a460934
Compare
ehigham
force-pushed
the
ehigham/limit-open-compression-uses
branch
from
January 5, 2026 18:04
cb7c670 to
2dbd0c9
Compare
ehigham
force-pushed
the
ehigham/scala-fs-extract-primitives
branch
from
February 19, 2026 15:14
a460934 to
8909888
Compare
ehigham
force-pushed
the
ehigham/limit-open-compression-uses
branch
from
February 19, 2026 15:14
2dbd0c9 to
ece11fd
Compare
ehigham
force-pushed
the
ehigham/limit-open-compression-uses
branch
from
February 19, 2026 15:39
ece11fd to
6eed16c
Compare
ehigham
force-pushed
the
ehigham/scala-fs-extract-primitives
branch
from
February 19, 2026 15:39
8909888 to
1af1120
Compare
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.

Change Description
This PR refactors stream handling in the codebase by introducing buffering and byte tracking utilities as extension methods. It adds
RichCodeInputStreamandRichCodeOutputStreamclasses with methods likebufferandtrackBytesto simplify stream creation and management.The changes remove direct instantiation of
BufferedInputStream,BufferedOutputStream, andByteTrackingOutputStreamthroughout the codebase, replacing them with the new extension methods. This standardizes stream handling and makes the code more consistent.The PR also updates various file operations in
EmitClassBuilder,MatrixWriter,TableWriter, and other classes to use these new utilities, ensuring consistent stream handling across the codebase.Security Assessment
This change cannot impact the Hail Batch instance as deployed by Broad Institute in GCP