fix(clickhouse): clickhouse health query (#1080)
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
d19c4e2b1a
commit
dd69202de7
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ def __check_database_ch():
|
|||
FROM system.functions
|
||||
WHERE name = 'openreplay_version';""")
|
||||
if len(schema_version) > 0:
|
||||
schema_version = ch.execute("SELECT openreplay_version()() AS version;")
|
||||
schema_version = ch.execute("SELECT openreplay_version() AS version;")
|
||||
schema_version = schema_version[0]["version"]
|
||||
else:
|
||||
print("!! health failed: clickhouse schema is outdated")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue