Closed jirisamek closed 3 years ago
ClickHouse({format: "JSON"}) Query:
ClickHouse({format: "JSON"})
WITH sum(bytes) as s SELECT formatReadableSize(s), table FROM system.parts GROUP BY table ORDER BY s
Execution of the query produces result formatted as plaintext.
Execution of the query produces result formatted JSON.
Explicitly add FROMAT JSON to the query.
WITH sum(bytes) as s SELECT formatReadableSize(s), table FROM system.parts GROUP BY table ORDER BY s FORMAT JSON
@nezed same issue here
Fixed with #66
Example:
ClickHouse({format: "JSON"})
Query:Current behaviour:
Execution of the query produces result formatted as plaintext.
Expected behaviour:
Execution of the query produces result formatted JSON.
Workaround:
Explicitly add FROMAT JSON to the query.