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
api-diagnosticsArea: public API shape, error reporting, logging, metrics, tracingclientModule: the client (client-v2; with legacy: the v1 client)enhancement
Recommendation: Keep open — implementation needed
Two open items cover parts of this: PR #3097 (the tagged error frame of a mid-stream error, in all formats; it has merge conflicts with main) and #3220 (the {"exception": ...} row of JSONEachRow on ClickHouse 25.8). Decide which parts this issue tracks.
Category: Feature
Classification: impact: none · area: API & diagnostics (errors in JSON formats)
Status on main: Not supported on main — on main (8480ca001) with ClickHouse 26.11.2.4, Client.query with JSONEachRow: an error before output gives a correct ServerException (code 395 and the server text); an error after 50 rows gives ConnectionClosedException: Premature end of chunk coded message body, with no server code or text, with and without response compression.
Breaking change: No — callers get a ServerException in place of a transport exception or a data row.
Analysis: client-v2 reads a server error only when the response starts with it: the X-ClickHouse-Exception-Code header or an error status (HttpAPIClientHelper.java:848-849, :872). No code in client-v2 reads X-ClickHouse-Exception-Tag, the __exception__ frame, or an exception key in JSON output. Not run: ClickHouse 24.8, where an error before output also comes as JSON (ClickHouse/clickhouse-js#1085).
Automated triage by Polyglot AI. A maintainer makes the final decision.
api-diagnosticsArea: public API shape, error reporting, logging, metrics, tracingclientModule: the client (client-v2; with legacy: the v1 client)enhancement
Activity
polyglotAI-bot commentedon Nov 27, 2026
Recommendation: Keep open — implementation needed
Two open items cover parts of this: PR #3097 (the tagged error frame of a mid-stream error, in all formats; it has merge conflicts with
main) and #3220 (the{"exception": ...}row ofJSONEachRowon ClickHouse 25.8). Decide which parts this issue tracks.main: Not supported on main — onmain(8480ca001) with ClickHouse 26.11.2.4,Client.querywithJSONEachRow: an error before output gives a correctServerException(code 395 and the server text); an error after 50 rows givesConnectionClosedException: Premature end of chunk coded message body, with no server code or text, with and without response compression.ServerExceptionin place of a transport exception or a data row.ServerExceptionwhose message starts with result rows.Analysis: client-v2 reads a server error only when the response starts with it: the
X-ClickHouse-Exception-Codeheader or an error status (HttpAPIClientHelper.java:848-849,:872). No code inclient-v2readsX-ClickHouse-Exception-Tag, the__exception__frame, or anexceptionkey in JSON output. Not run: ClickHouse 24.8, where an error before output also comes as JSON (ClickHouse/clickhouse-js#1085).Automated triage by Polyglot AI. A maintainer makes the final decision.