mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update tests
This commit is contained in:
parent
afb2cbe813
commit
3dda607059
@ -83,7 +83,7 @@ def get_query_user_info(node, query_pattern):
|
||||
def get_query_setting_on_shard(node, query_pattern, setting):
|
||||
node.query("SYSTEM FLUSH LOGS")
|
||||
return node.query("""
|
||||
SELECT (arrayFilter(x -> ((x.1) = '{}'), arrayZip(Settings.Names, Settings.Values))[1]).2
|
||||
SELECT Settings.Values['%s']
|
||||
FROM system.query_log
|
||||
WHERE
|
||||
query LIKE '%{}%' AND
|
||||
@ -91,7 +91,7 @@ def get_query_setting_on_shard(node, query_pattern, setting):
|
||||
query NOT LIKE '%system.query_log%' AND
|
||||
type = 'QueryFinish'
|
||||
LIMIT 1
|
||||
""".format(setting, query_pattern)).strip()
|
||||
""".format(setting, setting, query_pattern)).strip()
|
||||
|
||||
def test_insecure():
|
||||
n1.query('SELECT * FROM dist_insecure')
|
||||
|
Loading…
Reference in New Issue
Block a user