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
{{ message }}
Repository navigation
[jdbc-v2] review default value for wait_end_of_query #2830
Exploration result (ClickHouse 26.10.4, jdbc-v2 from main): keep the current default. The driver does not set wait_end_of_query, so the server streams result sets. No code change is necessary. #3397 documents the parameter. It has the measurements.
Summary:
executeUpdate / executeBatch counts are the same with 0 and 1. The server sends the summary of a statement without a result set after the statement ends.
=1 gives complete SELECT statistics and a clean SQLException (server code) from executeQuery for an error during the query. Costs: the first row is available only after the query ends, and the server writes each response to a temporary file on its disk (with the default http_response_buffer_size=0).
wait_end_of_query is an HTTP parameter, not a setting. readonly=1 profiles accept it, and the SETTINGS clause cannot enable it.
One finding for #2702 / #3097: with the default 0, when an error occurs after the server sent the first rows, the last 3–20 rows that ResultSet.next() returns before the exception have wrong values (part of the exception block read as data). This occurred in 6 of 6 runs. The PR documents it.
Activity
polyglotAI-bot commentedon Nov 19, 2026
Exploration result (ClickHouse 26.10.4, jdbc-v2 from
main): keep the current default. The driver does not setwait_end_of_query, so the server streams result sets. No code change is necessary. #3397 documents the parameter. It has the measurements.Summary:
executeUpdate/executeBatchcounts are the same with0and1. The server sends the summary of a statement without a result set after the statement ends.=1gives completeSELECTstatistics and a cleanSQLException(server code) fromexecuteQueryfor an error during the query. Costs: the first row is available only after the query ends, and the server writes each response to a temporary file on its disk (with the defaulthttp_response_buffer_size=0).wait_end_of_queryis an HTTP parameter, not a setting.readonly=1profiles accept it, and theSETTINGSclause cannot enable it.One finding for #2702 / #3097: with the default
0, when an error occurs after the server sent the first rows, the last 3–20 rows thatResultSet.next()returns before the exception have wrong values (part of the exception block read as data). This occurred in 6 of 6 runs. The PR documents it.