ClickHouse / ClickHouse/clickhouse-java

[jdbc-v2] Streaming data for insert

未关闭
#1,977 2 条评论 0 个 reaction 已指派 1 人 已指派给 @mzitnik 在 GitHub 查看
area:client-insert enhancement jdbc-v2 type:Epic
主要语言
Java
星标
1.6k
派生
637
平均合并
2 天 23 小时
30 天内合并 PR
29

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。