Skip to content

Enable Snappy in HTTP - #96442

Closed
nikitamikhaylov wants to merge 3 commits into
masterfrom
enable-snappy-in-http
Closed

nikitamikhaylov wants to merge 3 commits into
masterfrom
enable-snappy-in-http

Conversation

@nikitamikhaylov

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

  • Documentation is written (mandatory for new features)

@clickhouse-gh

clickhouse-gh Bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d594201]

Summary: ❌

job_name test_name status info comment
Fast test failure
Build ClickHouse failure
Build (amd_debug) dropped
Build (amd_asan) dropped
Build (amd_tsan) dropped
Build (amd_msan) dropped
Build (amd_ubsan) dropped
Build (amd_binary) dropped
Build (arm_asan) dropped
Build (arm_binary) dropped
Build (arm_tsan) dropped

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Feb 9, 2026
@Algunenano Algunenano self-assigned this 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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does curl decompress the data automatically for snappy? I see 00302_http_compression.sh doing things differently to test other encodings

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this isn't testing anything. It even passes in master.

@Algunenano Algunenano added the close in a month if not active This will be closed in case of no information label Feb 17, 2026
@nikitamikhaylov nikitamikhaylov removed the close in a month if not active This will be closed in case of no information label Feb 18, 2026
@alexey-milovidov alexey-milovidov added the close in a month if not active This will be closed in case of no information label Mar 24, 2026
@alexey-milovidov

Copy link
Copy Markdown
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

close in a month if not active This will be closed in case of no information pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snappy is not supported in http interface

3 participants