ClickHouse / ClickHouse/clickhouse-java

[jdbc-v2] Streaming data for insert

Open
#1,977 2 comments 0 reactions 1 assignee Assigned to @mzitnik View on GitHub
area:client-insert enhancement jdbc-v2 type:Epic
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 16h
Merged PRs (30d)
28

Description

### Describe the bug
JDBC driver should use streaming API of client-v2 to insert data where it is possible. The old client was doing it based on statement:
1. it is insert statement
2. it doesn't contain select
3. there is a specific `{tt 'raw_data'}` parameter

Note: statement may have a format: test: `com.clickhouse.jdbc.ClickHousePreparedStatementTest#testInsertWithFormat`

Here is test: `com.clickhouse.jdbc.ClickHousePreparedStatementTest#testLoadRawData`
Here is reference in code: `com.clickhouse.jdbc.internal.ClickHouseConnectionImpl#prepareStatement`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.