Skip to content

Commit 43a8afb

Browse files
committed
Update httpclient.py
update comments
1 parent 4815635 commit 43a8afb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

timeplus_connect/driver/httpclient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self,
7777
tls_mode: Optional[str] = None,
7878
proxy_path: str = ''):
7979
"""
80-
Create an HTTP ClickHouse Connect client
80+
Create an HTTP Timeplus Connect client
8181
See timeplus_connect.get_client for parameters
8282
"""
8383
proxy_path = proxy_path.lstrip('/')
@@ -216,7 +216,7 @@ def _query_with_context(self, context: QueryContext) -> QueryResult:
216216
response = self._raw_request(f'{context.final_query}\n FORMAT JSON',
217217
params, headers, retries=self.query_retries)
218218
json_result = json.loads(response.data)
219-
# ClickHouse will respond with a JSON object of meta, data, and some other objects
219+
# Timeplus will respond with a JSON object of meta, data, and some other objects
220220
# We just grab the column names and column types from the metadata sub object
221221
names: List[str] = []
222222
types: List[TimeplusType] = []
@@ -417,7 +417,7 @@ def _raw_request(self,
417417
final_params = {}
418418
if server_wait:
419419
final_params['wait_end_of_query'] = '1'
420-
# We can't actually read the progress headers, but we enable them so ClickHouse sends something
420+
# We can't actually read the progress headers, but we enable them so Timeplus sends something
421421
# to keep the connection alive when waiting for long-running queries and (2) to get summary information
422422
# if not streaming
423423
if self._send_progress:
@@ -456,7 +456,7 @@ def _raw_request(self,
456456
except HTTPError as ex:
457457
if isinstance(ex.__context__, ConnectionResetError):
458458
# The server closed the connection, probably because the Keep Alive has expired
459-
# We should be safe to retry, as ClickHouse should not have processed anything on a connection
459+
# We should be safe to retry, as Timeplus should not have processed anything on a connection
460460
# that it killed. We also only retry this once, as multiple disconnects are unlikely to be
461461
# related to the Keep Alive settings
462462
if attempts == 1:

0 commit comments

Comments
 (0)