ClickHouse / ClickHouse/clickhouse-java

getBlob implementation

オープン
#2,558 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:jdbc-read enhancement jdbc-v2
主要言語
Java
スター
1.6k
フォーク
636
平均マージ
2日 23時間
マージ済み PR(30日)
29

説明

### Use case
Download binary files from CH

### Describe the solution you'd like
Implement
1. Class - ResultSetImpl
Method - getBinaryStream(String columnLabel)

2. Class - ResultSetImpl
Method - getBlob(String columnLabel)

### Describe the alternatives you've considered
QuerySettings querySettings = new QuerySettings();
querySettings.setFormat(ClickHouseFormat.RawBLOB);
QueryResponse queryResponse = connection.unwrap(ConnectionImpl.class)
.getClient()
.query("select ...", querySettings)
.get();

### Additional context

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ResultSetImpl の実装を見つけ、既存の getBinaryStream(String columnLabel) メソッドと getBlob(String columnLabel) メソッド、またはそれらのスタブを確認します。期待されるバイナリ表現を理解するため、RawBLOB QuerySettings の例と関連する ResultSet の動作を確認します。両方のメソッドで JDBC インターフェースを介して ClickHouse からバイナリファイルをダウンロードでき、利用可能であれば既存のテスト構成で適切にカバレッジされていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
database
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。