clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

Java client and JDBC driver for ClickHouse

Results 485 clickhouse-java issues
Sort by recently updated
recently updated
newest added

## Description Only `Date` clickhouse types are formatted and returned as local date strings. `Date32` is returned as LocalDateTime. See https://github.com/ClickHouse/clickhouse-java/blob/b46d249bc894709b9f68962917c56b021dee9652/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java#L334-L340 The fix for date was added in https://github.com/ClickHouse/clickhouse-java/pull/2062/files, not...

bug

### Describe the bug The ClickHouse Java driver suppresses error messages that contain `DB::NetException` due to a hardcoded substring match for `DB::Exception`. In log we receiving Caused by: com.clickhouse.client.api.ServerException: Code:...

bug
client-api-v2
area:error-handling

## Description Following https://github.com/ClickHouse/clickhouse-java/issues/1833#issuecomment-2877872593 I was trying to play with `OUTPUT_FORMAT_BINARY_WRITE_JSON_AS_STRING` and hit a `Failed to read row` issue. I ended up reproducing the issue in a `src/test/java/com/clickhouse/jdbc/DataTypeTests.java` test: ###...

bug
jdbc-v2
data-type

### Company or project name _No response_ ### Question Hi, I'm facing a problem that doesn't always occur and is therefore difficult to reproduce and resolve. Here is some key...

question
client-api-v2

We previously encountered a similar issue ([#1862](https://github.com/ClickHouse/clickhouse-java/issues/1862)), and the suggested solution worked at that time. However, after migrating to jdbc-v2 (version 0.8.4), the same approach no longer works. Currently, we're...

bug
jdbc-v2

The database metadata object is throwing exceptions when fetching the server version. ### Steps to reproduce 1. Spin up a fresh Clickhouse test container 2. Obtain a database connection to...

bug

### Describe your feedback ATM, it seems jdbc-v2 cannot properly convert the embedded array value returned from the getObject function to java.sql.array types. For example, if a query fetching data...

v2-feedback

### Company or project name _No response_ ### Question Why does the SQL in my XML file execute normally when inserted individually, but an error occurs when executed in batches,...

question
jdbc-v2

## Description Stacktrace: ``` java.lang.IllegalArgumentException: Unknown data type: Time64 at com.clickhouse.data.ClickHouseDataType.of(ClickHouseDataType.java:460) at com.clickhouse.jdbc.metadata.DatabaseMetaDataTest.testGetTypeInfo(DatabaseMetaDataTest.java:234) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ``` This means that old client would not work with a new server even...

bug
jdbc-v2
area:jdbc-metadata

### Describe the bug Hi, I'm building a Spring Boot 3 + Java 21 app that connects to a ClickHouse instance running on another machine. I can successfully ping the...

bug
investigating