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

PreparedStatement executeBatch returns number of rows regardless on how many failed

Open jorge-lavin opened this issue 6 years ago • 1 comments

executeBatch() method does return an int[] that seems to be filled with all ones regardless on many of the rows in the PreparedStatement went well.

Reference: https://github.com/yandex/clickhouse-jdbc/blob/master/src/main/java/ru/yandex/clickhouse/ClickHousePreparedStatementImpl.java#L365

Is there any plan to modify this behaviour? So that int[] does contain information on how many of the rows went well and how many did not?

Kind regards

jorge-lavin avatar Jun 06 '19 15:06 jorge-lavin

ClickHouse server returns inserted rows but not updated/deleted rows at this point - see ClickHouse/ClickHouse#18237 and ClickHouse/ClickHouse#19274

zhicwu avatar Jan 19 '21 11:01 zhicwu