clickhouse-java
clickhouse-java copied to clipboard
Java client and JDBC driver for ClickHouse
i find that there are two types of clients, I have a lot of write requests, which is more efficient?
**1. my first question:** use jdbc: https://github.com/ClickHouse/clickhouse-java/blob/main/examples/jdbc/src/main/java/com/clickhouse/examples/jdbc/Basic.java use client: https://github.com/ClickHouse/clickhouse-java/blob/main/examples/client/src/main/java/com/clickhouse/examples/jdbc/Main.java I have a lot of write requests, and need to write in batch mode, so which is more efficient? can...
## Summary support custom SNI for SSL connection ## Checklist Delete items not relevant to your PR: - [ ] Unit and integration tests covering the common scenarios were added...
### Describe the bug If one creates a table with column named "format", they will receive java.lang.IllegalArgumentException: No enum constant com.clickhouse.data.ClickHouseFormat.String ### Code example ```java String url = "jdbc:ch://localhost:8123/default"; ClickHouseDataSource...
### Describe the bug I want to import a csv file data to an existing table by use api ClickHouseClient.load() with custom settings 'insert_distributed_sync=1,insert_quorum=2' ### Steps to reproduce 1.prepare a...
the client version: ``` com.clickhouse clickhouse-http-client 0.5.0 ```
### Describe the bug When trying to upgrade from 0.3 -> 0.5 series I getting following error which I suppose cause by missing `use` declaration in `com.clickhouse.data`. ``` java.util.ServiceConfigurationError: com.clickhouse.client.ClickHouseRequestManager:...
ClickHouse-JDBC version: 0.3.1 && 0.4.5  After the value of max_concurrent_queries in the config.xml file is changed to 0, the same error message is displayed. How to solve the problem?
### Describe the bug Throw an exception when I execute the "insert into test FORMAT JSONEachRow {"project_name":"jenny","client_type":"iphone","age":11}" statement exception: ` org.springframework.jdbc.UncategorizedSQLException: ### Error updating database. Cause: java.sql.SQLException: Missing input stream...
For some reason\*\* my main cluster in `system.clusters` has no node with `is_local = 1`. For example: ``` select host_address, is_local, default_database from system.clusters where cluster = 'ch_cluster' ┌─host_address─┬─is_local─┬─default_database─┐ │...
### Describe the bug I want to use jdbc to connect the multiple clickhouse nodes, set the load balance with 'random', and also set the failover with '3'. But when...