Repository navigation
Enable Snappy in HTTP - #96442
Closed
nikitamikhaylov wants to merge 3 commits into
Closed
Enable Snappy in HTTP#96442nikitamikhaylov wants to merge 3 commits into
nikitamikhaylov wants to merge 3 commits into
Conversation
Contributor
|
Workflow [PR], commit [d594201] Summary: ❌
|
Algunenano
reviewed
Feb 11, 2026
| # shellcheck source=../shell_config.sh | ||
| . "$CURDIR"/../shell_config.sh | ||
|
|
||
| ${CLICKHOUSE_CURL} 'Accept-Encoding: snappy' "${CLICKHOUSE_URL}&enable_http_compression=1" -d "SELECT 1" |
Member
There was a problem hiding this comment.
Does curl decompress the data automatically for snappy? I see 00302_http_compression.sh doing things differently to test other encodings
Member
There was a problem hiding this comment.
Yep, this isn't testing anything. It even passes in master.
Member
|
The code does not build. |
alexey-milovidov
added a commit
that referenced
this pull request
Mar 25, 2026
The server already recognized `Accept-Encoding: snappy` and set the `Content-Encoding` response header, but the write path threw "Unsupported compression method" when actually trying to compress. Replace the throw in `createWriteCompressedWrapper` with creating a `SnappyWriteBuffer`. Add the necessary `WriteBuffer *` constructor overload and change the `unique_ptr` constructor to take by reference so it works with the forwarding template. Closes #44885 Reimplements #96442 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 task
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
The server already recognized `Accept-Encoding: snappy` and set the `Content-Encoding` response header, but the write path threw "Unsupported compression method" when actually trying to compress. Replace the throw in `createWriteCompressedWrapper` with creating a `SnappyWriteBuffer`. Add the necessary `WriteBuffer *` constructor overload and change the `unique_ptr` constructor to take by reference so it works with the forwarding template. Closes ClickHouse#44885 Reimplements ClickHouse#96442 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Enable Snappy compression in HTTP interface. This fixes: #44885
Documentation entry for user-facing changes