You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried send_progress_in_http_headers option like used here? With that, I think case 2 will be fixed but case 1 stays the same. Let me think how to tackle this without much parsing efforts.
Update: returning actual update count in http without additional setting is possible in 22.6+ - see ClickHouse/ClickHouse#36884
Now the update count depends on two things: 1) SQL parser(a bit outdated); and 2) summary returned from server. Above two cases work as expected on 22.6+.
Hi!
In
com.clickhouse.jdbc.internal.ClickHouseStatementImpl#updateResult
:Yes, this isn’t always true :)
Examples:
String sql = “CREATE TABLE new_table(x INT) engine = Memory;”
Expected
updateCount
: 0Actual
updateCount
: 1String sql = "INSERT INTO new_table VALUES (1), (2), (3);"
Expected
updateCount
: 3Actual
updateCount
: 1The text was updated successfully, but these errors were encountered: