Skip to content

Setting CompressionZSTD has no effect #1772

Description

@bobrik

Observed

Both LZ4 and ZSTD compression methods simply set compress=1:

case CompressionZSTD, CompressionLZ4:
options.settings["compress"] = "1"

There's no indication whether to use LZ4 or ZSTD, so the response is always LZ4.

Expected behaviour

ZSTD is actually used.

Details

Environment

  • clickhouse-go version: v2.41.0
  • Interface: ClickHouse API, HTTP
  • Go version: go1.25.5
  • Operating system: Linux
  • ClickHouse version: 24.8.15.33588
  • Is it a ClickHouse Cloud? no
  • ClickHouse Server non-default settings, if any:
  • CREATE TABLE statements for tables involved:
  • Sample data for all these tables, use clickhouse-obfuscator if necessary

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions