aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-11-16 22:11:58 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-11-16 22:20:19 +0300
commitfc534ef7d05a8f876fe68dac33664d5cf973ac6b (patch)
tree8cecd541009832fc42f10101dad7e3493624e2c1 /contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py
parente0ece3a670de1090fcb097575f087364742a9ef6 (diff)
downloadydb-fc534ef7d05a8f876fe68dac33664d5cf973ac6b.tar.gz
Intermediate changes
commit_hash:892a91804b4df7261c13e779f9cd1a821adf4044
Diffstat (limited to 'contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py')
-rw-r--r--contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py b/contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py
index 558d66f614..deb68ce05c 100644
--- a/contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py
+++ b/contrib/python/clickhouse-connect/clickhouse_connect/driver/httputil.py
@@ -225,7 +225,7 @@ class ResponseSource:
chunks = deque()
done = False
current_size = 0
- read_gen = response.read_chunked(chunk_size, decompress is None)
+ read_gen = response.stream(chunk_size, decompress is None)
while True:
while not done:
chunk = next(read_gen, None) # Always try to read at least one chunk if there are any left