mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #39120 from ClickHouse/kssenii-patch-5
Update cluster.py
This commit is contained in:
commit
5235396c24
@ -2943,7 +2943,12 @@ class ClickHouseInstance:
|
||||
ignore_error=False,
|
||||
query_id=None,
|
||||
):
|
||||
logging.debug("Executing query %s on %s", sql, self.name)
|
||||
sql_for_log = ''
|
||||
if len(sql) > 1000:
|
||||
sql_for_log = sql[:1000]
|
||||
else:
|
||||
sql_for_log = sql
|
||||
logging.debug("Executing query %s on %s", sql_for_log, self.name)
|
||||
return self.client.query(
|
||||
sql,
|
||||
stdin=stdin,
|
||||
|
Loading…
Reference in New Issue
Block a user