Skip to content
Snippets Groups Projects
Commit 5786458c authored by Christoph Alt's avatar Christoph Alt
Browse files

fixed the annotation query for dbs with complex field type fixes #1

parent 6c447b26
Branches
No related merge requests found
Pipeline #43447 passed with stages
in 14 seconds
...@@ -22,9 +22,9 @@ def get_annotation(*args, **kwargs): ...@@ -22,9 +22,9 @@ def get_annotation(*args, **kwargs):
def get_commit_annotation(datasource: str, color: str, name: str, measurment_name: str): def get_commit_annotation(datasource: str, color: str, name: str, measurment_name: str):
query = ("SELECT \"commit\" from " query = ("SELECT first(\"commit\") FROM "
f"( SELECT first(/./) FROM \"{measurment_name}\" " f"( SELECT * FROM \"{measurment_name}\" "
"WHERE host =~ /^$host$/ AND $timeFilter GROUP BY \"commit\" )") "WHERE host =~ /^$host$/ AND $timeFilter) GROUP BY \"commit\"")
return get_annotation(datasource, color, name, query) return get_annotation(datasource, color, name, query)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment