Skip to content

[client-v2, jdbc-v2] Client should detect server compression and use proper decompression algorithm #3120

Description

@chernser

Description

There is a change in upcoming ClickHouse version ClickHouse/ClickHouse#108786
which switches to ZSTD(3) for disk and network.

In case of HTTP this is compression requested by compress query parameter (decompress is sent by client to indicate that payload is compressed).

What should be done

  • ZSTD compression library is added or existing used
  • when client reads payload it should detect magic number of ZSTD and LZ4 sent by server
  • if http compression and compress=1 is enabled it should be possible to read payload from server

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions