-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nesting variables not working correctly #454
Comments
Hi @mzealey, can you show me the query inspector output please 😊 |
and then it's pretty much bi-table between the above and:
actually feeling more like a race than a bi-stable when i hit refresh from the query inspector now |
nb this is grafana v9.5.1 (bc353e4b2d) and ch plugin 3.1.0 |
This is a problem with SQLDS. I created an issue in that repo. grafana/sqlds#97 |
What happened:
Basic issue is that when a datapoint is not specified I wish to have it listed as zero. Other drivers (such as postgres) do this in a somewhat magic way.
Using the other CH Grafana driver we were doing:
Converting to the latest public version of this driver I have come up with the following:
This seems to work 50% of the time and not the other 50%; looking in query inspector, the resultant sql seems bistable between having the outer
$__timeInterval
macros being interpolated and notWhat you expected to happen:
The outer macros should always be interpolated.
Alternatively, some other way of specifying non-existent values as 0 could be provided.
Alternatively, new variables such as
$__fromTimeTruncated
and$__toTimeTruncated
could be provided to avoid having to nest variables.The text was updated successfully, but these errors were encountered: