We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f045af9 commit b643b0cCopy full SHA for b643b0c
packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts
@@ -268,7 +268,9 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
268
abort_signal: signal,
269
});
270
271
- if (resultSet.response_headers['x-clickhouse-format'] !== format) {
+ // response_headers['x-clickhouse-format'] is optional, but if it exists,
272
+ // it should match the requested format.
273
+ if (resultSet.response_headers['x-clickhouse-format'] && resultSet.response_headers['x-clickhouse-format'] !== format) {
274
throw new Error(`Unexpected x-clickhouse-format in response: expected ${format}, received ${resultSet.response_headers['x-clickhouse-format']}`);
275
}
276
0 commit comments