clickhouse-java
clickhouse-java copied to clipboard
Java client and JDBC driver for ClickHouse
### 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...
e.g. for array type ``` interface ClickHouseValue { Object[] asArray() T[] asArray(Class clazz) // wanted ClickHouseValue[] asArrayValues() } ```
Driver version v0.3.2-patch11 Selecting some huge numbers gives incorrect results. For example: `SELECT toUInt64(15369343623947579499) a, toNullable(15369343623947579499) b;` in dBeaver:  in DataGrip: 
com.clickhouse.jdbc.internal.ClickHouseConnectionImpl#prepareStatement: Prepared statement only supports one query but we got
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