Skip to content

Commit 1808605

Browse files
committed
fix(clickhouse): raise binary type complexity limit so nested JSON columns stay readable
Runs whose output or error payloads produce a deeply nested materialized type can exceed ClickHouse's default binary type complexity of 1000 when the JSON-typed column is read back. The read fails for the whole query, so those runs vanish from the runs list even though they are still counted by status aggregates. Set input_format_binary_max_type_complexity on the client so every query reads these columns without erroring.
1 parent d720690 commit 1808605

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Fix runs with deeply nested output or error payloads disappearing from the runs list by raising the ClickHouse binary type complexity limit

internal-packages/clickhouse/src/client/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export class ClickhouseClient implements ClickhouseReader, ClickhouseWriter {
7272
output_format_json_quote_64bit_integers: 0,
7373
output_format_json_quote_64bit_floats: 0,
7474
cancel_http_readonly_queries_on_client_close: 1,
75+
// Deeply nested JSON-typed columns (e.g. run output/error) can exceed
76+
// the default binary type complexity of 1000 when read back, which
77+
// fails the whole query. Raise the ceiling so those rows stay readable.
78+
input_format_binary_max_type_complexity: 100000,
7579
},
7680
log: {
7781
level: convertLogLevelToClickhouseLogLevel(config.logLevel),

0 commit comments

Comments
 (0)