ClickHouse / ClickHouse/clickhouse-java

getBlob implementation

未关闭
#2,558 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:jdbc-read enhancement jdbc-v2
主要语言
Java
星标
1.6k
派生
637
平均合并
2 天 23 小时
30 天内合并 PR
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 摘要。