ClickHouse / ClickHouse/clickhouse-odbc

Enable `send_progress_in_http_headers` to support long-running queries

Open
#519 1 comment 1 reaction 1 assignee Claimed by @slabko View on GitHub
enhancement
Dominant language
C
Stars
285
Forks
105
Avg merge
3h 56m
Merged PRs (30d)
3

Description

Queries that run longer than 30 seconds without returning any data are terminated by the driver. This can be addressed by changing the `Timeout` parameter. Doing so, however, also increases the timeout for cases where the connection is genuinely broken. Additionally, the parameter must be explicitly passed, which is not always possible.

An alternative solution is to enable `send_progress_in_http_headers` by default for the ODBC driver and set `http_headers_progress_interval_ms` to a value below the timeout threshold. This ensures that the server reports the query as active, even if it's still in progress.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.