clickhouse-java
clickhouse-java copied to clipboard
Java client and JDBC driver for ClickHouse
### Describe the bug password contains =?use clickhouse-jdbc connection failed. ### Steps to reproduce 1. clickhouse server version 21.8.8.1 2. password AF.O4P=?m76.lHfa 3. ru.yandex.clickhouse clickhouse-jdbc 0.3.2 4. error message: Code:...
gRPC has been available as an experimental feature in ClickHouse for a while, but it lacks active maintenance, likely due to its limited usage. In this repository, the `clickhouse-grpc-client` was...
## Summary Closes #1399 ## Checklist Delete items not relevant to your PR: - [ ] Unit and integration tests covering the common scenarios were added - [x] A human-readable...
**Description:** In the current implementation, clickhouse-java manually parses query parameters, supporting both traditional question marks and named parameters. We propose refactoring this process to leverage ClickHouse's [parameters binding capabilities](https://clickhouse.com/docs/en/sql-reference/syntax#defining-and-using-query-parameters) for...
add an example of usage with [Hikari](https://github.com/brettwooldridge/HikariCP)
### Describe the bug When using spark to write an array of string to Clickhouse, the driver throws `java.lang.IllegalArgumentException: Unknown data type: string` exception. Reasons: - Exception is thrown by:...
### Describe the bug When attempting to insert Cap'N'Proto binary encoded data using the edited [example](https://github.com/ClickHouse/clickhouse-java/blob/main/examples/client/src/main/java/com/clickhouse/examples/jdbc/Main.java#L39), a `NullPointerException` is encountered. The specific error message is: ``` java.lang.NullPointerException`: Cannot invoke "com.clickhouse.data.ClickHouseDataProcessor.getInputStream()"...
### Describe the bug I see warnings about SQL type in logs. Why? ### Steps to reproduce 1. Run SQL via JDBC. ### Expected behaviour ### Code example SQL: ```...
java.io.IOException: Magic is not correct - expect [-126] but got [105] at com.clickhouse.client.data.ClickHouseLZ4InputStream.readNextBlock(ClickHouseLZ4InputStream.java:49) ~[clickhouse-grpc-client-0.3.2.7-SNAPSHOT-netty.jar!/:?] at com.clickhouse.client.data.ClickHouseLZ4InputStream.checkNext(ClickHouseLZ4InputStream.java:34) ~[clickhouse-grpc-client-0.3.2.7-SNAPSHOT-netty.jar!/:?] at com.clickhouse.client.data.ClickHouseLZ4InputStream.read(ClickHouseLZ4InputStream.java:173) ~[clickhouse-grpc-client-0.3.2.7-SNAPSHOT-netty.jar!/:?] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?] at...
in my case ,i have used jdbc: https://github.com/ClickHouse/clickhouse-java/blob/main/examples/jdbc/src/main/java/com/clickhouse/examples/jdbc/Basic.java **here is my config:** spring: datasource: url: jdbc:ch://xxxxxxxxx/default?rewriteBatchedStatements=true username: password: driver-class-name: com.clickhouse.jdbc.ClickHouseDriver hikari: maximum-pool-size: 500 minimum-idle: 50 connection-timeout: 5000 **write code:** i...