clickhouse-java
clickhouse-java copied to clipboard
Java client and JDBC driver for ClickHouse
class: ClickHouseDatabaseMetaData.getCatalogs ``` SELECT event_time, query_duration_ms, initial_user, query sql, if(exception_code = 0,'success',exception) exception, Settings FROM clusterAllReplicas('ck', 'system.query_log') WHERE event_time>='2024-02-29 14:39:00' AND event_time600000 ORDER BY event_time DESC limit 10;\G ``` ```...
### Describe the bug I have encountered a super weird behavior when executing inserts using clickhouse-jdbc driver. We have a ReplicatedSummingMergeTree table which has the following schema: ``` CREATE TABLE...
### Describe the bug The same sql but not get same result between spark jdbc catalog and DBeave(by jdbc connection) ### Steps to reproduce ```python spark = SparkSession.builder \ .config("spark.jars",...
## Summary Fix for issue https://github.com/ClickHouse/clickhouse-java/issues/1551
```java @Test public void test() throws SQLException, ClickHouseException { String url = "jdbc:clickhouse://localhost:8123/clickhouse_test"; // use http protocol and port 8123 by default ClickHouseNodes servers = ClickHouseNodes.of(url); try (ClickHouseClient client =...
Run tests against a Cloud instance with SMT. Credentials are available via env vars - INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT - INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT
### Describe the bug we have some spring-boot project that use clichouse-jdbc-driver query data. but in system.query table we find a lot of query like this. `SELECT 1 FORMAT TabSeparatedWithNamesAndTypes`...
### Describe the bug Method `equals` in [ByteUtils](https://github.com/ClickHouse/clickhouse-java/blob/main/clickhouse-data/src/main/java9/com/clickhouse/data/ByteUtils.java) returns `Arrays.equals(a, aFromIndex, aToIndex, a, bFromIndex, bToIndex)`. The second byte[] should be `b`
### Describe the bug Clickhouse allows user to set query to multiple level including at the query level. When the setting `session_timezone` is set in dbeaver , the setting is...
Hello. I have an issue with connection to Clickhouse with the driver (version 0.4.6). The problems with Inserts. There is an exception: `java.sql.BatchUpdateException: Unexpected end of file from server, server...