Skip to content

Commit 7b36cc1

Browse files
authored
chore: Upgrade clickhouse-driver to 0.2.9 (#6869)
1 parent 6d8de6d commit 7b36cc1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
black==22.6.0
44
blinker==1.5
55
click==8.1.7
6-
clickhouse-driver==0.2.6
6+
clickhouse-driver==0.2.9
77
confluent-kafka==2.7.0
88
datadog==0.21.0
99
devservices==1.0.16

snuba/clickhouse/native.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ def query_execute() -> Any:
206206
result_data = query_execute()
207207

208208
profile_data = ClickhouseProfile(
209-
bytes=conn.last_query.profile_info.bytes or 0,
210-
progress_bytes=conn.last_query.progress.bytes or 0,
211-
blocks=conn.last_query.profile_info.blocks or 0,
212-
rows=conn.last_query.profile_info.rows or 0,
209+
blocks=getattr(conn.last_query.profile_info, "blocks", 0),
210+
bytes=getattr(conn.last_query.profile_info, "bytes", 0),
213211
elapsed=conn.last_query.elapsed or 0.0,
212+
progress_bytes=getattr(conn.last_query.progress, "bytes", 0),
213+
rows=getattr(conn.last_query.profile_info, "rows", 0),
214214
)
215215
if with_column_types:
216216
result = ClickhouseResult(

0 commit comments

Comments
 (0)