ClickHouse / ClickHouse/clickhouse-java
[client-v2, jdbc-v2] Client should detect server compression and use proper decompression algorithm
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 636
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 29
説明
### Description
There is a change in upcoming ClickHouse version https://github.com/ClickHouse/ClickHouse/pull/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
コントリビューションガイド
調査の方向性
まず、クライアントの HTTP レスポンスの展開処理のパスと、クエリパラメータ `compress` および `decompress` の処理を特定します。現在サーバーのペイロードがどのようにデコードされているかを確認し、HTTP 圧縮が有効な場合に、ZSTD または LZ4 のマジックナンバーで識別されたペイロードを読み取れることを完了条件にします。両方のアルゴリズムについてテストを追加または更新します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- databases
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100