Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jdbc-v2] Streaming data for insert #1977

Open
chernser opened this issue Nov 25, 2024 · 0 comments
Open

[jdbc-v2] Streaming data for insert #1977

chernser opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
jdbc-v2 jdbc-v2 issues

Comments

@chernser
Copy link
Contributor

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

@chernser chernser added the jdbc-v2 jdbc-v2 issues label Nov 25, 2024
@chernser chernser added this to the Priority Backlog milestone Nov 25, 2024
@Paultagoras Paultagoras self-assigned this Nov 25, 2024
@Paultagoras Paultagoras linked a pull request Nov 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jdbc-v2 jdbc-v2 issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants