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

### What I am doing? I am currently writing a dataframe into clickhouse from PySpark using ClickHouse-jdbc driver. The table is not originally present and it is dynamically created while...

### OS Windows 11 Spark 3.1.2 Python 3.7 ### What I am doing ? I have a dataframe that contains an Array of Integers in a column. I am inserting...

The field declared as `FixedString(2)` ```sql CREATE TABLE test ( country FixedString(2) ) ENGINE = MergeTree() PRIMARY KEY (country) ORDER BY (country) ; ``` If we tried to insert data...

bug

e.g. for array type ``` interface ClickHouseValue { Object[] asArray() T[] asArray(Class clazz) // wanted ClickHouseValue[] asArrayValues() } ```

enhancement

Driver version v0.3.2-patch11 Selecting some huge numbers gives incorrect results. For example: `SELECT toUInt64(15369343623947579499) a, toNullable(15369343623947579499) b;` in dBeaver: ![image](https://user-images.githubusercontent.com/6350825/189865382-7dab3289-3dd0-45b7-a1b5-08ea8a6482fd.png) in DataGrip: ![image](https://user-images.githubusercontent.com/6350825/189865546-d97fab26-5c5e-41fa-9d92-cdb45082b7a0.png)

question

com.clickhouse.jdbc.internal.ClickHouseConnectionImpl#prepareStatement: Prepared statement only supports one query but we got

enhancement

JDBC 0.3.2+ can cause such problems. this is my code ` public void createConnection() throws Exception { String insertStr = insertStr(this.tableColums); String url = "jdbc:clickhouse://" + host + "?socket_timeout=300000"; Connection...

This reminds that probably we need to promote FakeTransaction from clickhouse-jdbc to clickhouse-client, so that it can be reused in R2DBC as well. This is something we need to refactor...

We need to declare a constant to reuse in both JDBC and R2DBC driver. This can be updated later. https://github.com/rernas35/clickhouse-jdbc/blob/41e1afc89c4c5aa6c1e6874148545086deca9d06/clickhouse-r2dbc/src/main/java/com/clickhouse/r2dbc/connection/ClickHouseConnectionMetadata.java#L28

Fetch size should impact buffer size and maybe maximum queued buffers etc. I can fix this together with JDBC driver after merging the initial PR. https://github.com/rernas35/clickhouse-jdbc/blob/41e1afc89c4c5aa6c1e6874148545086deca9d06/clickhouse-r2dbc/src/main/java/com/clickhouse/r2dbc/ClickHouseStatement.java#L129