ClickHouse / ClickHouse/clickhouse-java

getBlob implementation

Open
#2,558 6 comments 0 reactions 0 assignees View on GitHub
area:jdbc-read enhancement jdbc-v2
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 23h
Merged PRs (30d)
29

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Locate the ResultSetImpl implementation and inspect the existing getBinaryStream(String columnLabel) and getBlob(String columnLabel) methods or their stubs. Review the RawBLOB QuerySettings example and related ResultSet behavior to understand the expected binary representation. Done means both methods can download binary files from ClickHouse through the JDBC interface, with appropriate coverage in the existing test structure if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.