fix: honor CompressionZSTD for native block compression - #1840
Conversation
Signed-off-by: Mustaeen Ahmed <136145181+must108@users.noreply.github.com>
SummaryThis PR fixes a real bug: previously, both Should fix
Nits
VerdictApprove once the stale |
|
@mshustov good to check again! |
ReviewSummaryThis PR fixes #1772, where the HTTP native block compression path set Should fix
Nits
Verdict
|
b045bf9 to
4485bfe
Compare
🤖 Claude reviewFixes #1772: the HTTP native block compression path set What checks out:
Minor points (non-blocking): the helper unconditionally overwrites a user-supplied Blind spots:
Verdict: ✅ Approve General findings
Inline comments are attached to the relevant lines. This summary updates in place on re-review. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
@must108 do you think we should tackle TCP side also in this PR? Also works if you can create a an issue to tack the TCP. |
| if h.opt != nil && h.opt.Compression != nil { | ||
| compressionLevel = h.opt.Compression.Level | ||
| } | ||
| applyHTTPNativeCompressionSettings(options.settings, h.compression, compressionLevel, false) |
There was a problem hiding this comment.
I see we pass the network_compression_method in HTTP requests correctly now 👍
But I don't see we fix the places where we choose compression reader/writer to correctly decode the blocks? e.g: now we send non-default compression say zstd, and blocks are now compressed with zstd instead of lz4 (default). how does our query path decodes it correctly? I don't see relevant code is touched in this PR.
Just wondering how it was working and how it will work now?
Summary
This PR fixes HTTP native block compression settings so
CompressionZSTDandCompressionLZ4no longer behave the same.Fixes #1772
Checklist
Delete items not relevant to your PR: