-
Notifications
You must be signed in to change notification settings - Fork 68
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
Multi-line time series with subquery/CTE #207
Comments
You device_id to be a string |
Well, despite it contains numbers, it is a String indeed (LowCardinality(String) to be precise) - you can see it from column header icon "A". And if it was a number, it would not work with a simple query as well. |
so you can use a transform to wide series to fix this but I don't understand why this isn't working - ideas @bossinc ? I can't reproduce with my own sub selects - I'll try CTEs as well. |
Well, plugin reinstallation didn't help. My CH version is 22.3.3.44, if it makes any difference. |
I don't know why, but when I view results in query inspector And response types look correct to me: {
"response": {
"results": {
"A": {
"frames": [
{
"schema": {
"name": "A",
"refId": "A",
"meta": {
"preferredVisualisationType": "table",
"executedQueryString": "..."
},
"fields": [
{
"name": "time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
}
},
{
"name": "device_id",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "temp",
"type": "number",
"typeInfo": {
"frame": "float64"
}
}
]
},
"data": {
"values": [
[
1663588800000,
1663588800000,
1663589400000,
....
],
[
"1231111",
"5449773",
"5449773",
....
],
[
11.505,
14.626666666666667,
15.0475,
...
]
]
}
}
],
"refId": "A"
}
}
}
} |
Apologies i meant multi-frame not wide. I'll see if I can reproduce tmr. |
@gingerwizard did you reproduce this issue? |
Hi @mrsndmn, if the multi-frame transformation solved this problem for you please let us know. If you're still having problems please create a new issue. @stas-sl, @gingerwizard I'm going to close this issue as there's been awhile without any activity or response. If this is still an issue please re-open 😊 |
@aangelisc I'm having the same issue, multiframe seems to help, however as per my understanding it should be working without transformation, do I miss something? |
Describe the bug
I'm not sure if this bug or just not implemented, but when I'm trying to use a bit more complicated queries that include subqueries or CTEs, the results fail to be recognised as multi time-series data.
Versions
Grafana: 9.1.5
Plugin: 2.0.1
Query
For example this query works:
However the following modifications do not:
or
The text was updated successfully, but these errors were encountered: