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
In addition the progress interval is really designed to keep the connection alive -- especially since the Python HTTP libraries can't actually read the intermediate progress headers. There's no real benefit (or meaningful cost) to changing it and making it configurable again doesn't really have a use case.
This code:
https://github.com/ClickHouse/clickhouse-connect/blob/15e88b2056d6f1cd53ffbc5094187c4de85db3ab/clickhouse_connect/driver/httpclient.py#L155C1-L155C90
Will cause
self._progress_interval
to be negative ifsend_receive_timeout
is less than 5.This negative value is then passed to clickhouse via a http parameter e.g.
http_headers_progress_interval_ms=-1000
Clickhouse then returns an error:
DB::ParsingException: Unsigned type must not contain '-' symbol. (CANNOT_PARSE_NUMBER)
It could be fixed by:
Also the
-5
and120000
may be better defined as settings and documented.The text was updated successfully, but these errors were encountered: