Skip to content

Commit

Permalink
Update client revision to 54453
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan committed Mar 13, 2022
1 parent 0fbd017 commit 1772568
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions clickhouse_driver/clientinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,8 @@ def write(self, server_revision, fout):
else:
# Don't have OpenTelemetry header.
write_binary_uint8(0, fout)

if revision >= defines.DBMS_MIN_REVISION_WITH_PARALLEL_REPLICAS:
write_varint(0, fout) # collaborate_with_initiator
write_varint(0, fout) # count_participating_replicas
write_varint(0, fout) # number_of_current_replica
3 changes: 2 additions & 1 deletion clickhouse_driver/defines.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
DBMS_MIN_PROTOCOL_VERSION_WITH_DISTRIBUTED_DEPTH = 54448
DBMS_MIN_PROTOCOL_VERSION_WITH_INITIAL_QUERY_START_TIME = 54449
DBMS_MIN_PROTOCOL_VERSION_WITH_INCREMENTAL_PROFILE_EVENTS = 54451
DBMS_MIN_REVISION_WITH_PARALLEL_REPLICAS = 54453

# Timeouts
DBMS_DEFAULT_CONNECT_TIMEOUT_SEC = 10
Expand All @@ -39,7 +40,7 @@
CLIENT_VERSION_MAJOR = 20
CLIENT_VERSION_MINOR = 10
CLIENT_VERSION_PATCH = 2
CLIENT_REVISION = 54451
CLIENT_REVISION = 54453

BUFFER_SIZE = 1048576

Expand Down

0 comments on commit 1772568

Please sign in to comment.