Closed a2l007 closed 4 years ago
What version?
Do you have filter on time dimension?
Does query works (i.e. visualisation loads as expected), but just modal breaks?
I'm on 1.14.0. I do have a time dimension filter. It loads into a blank page which means query is not working. Also once I'm in the blank page, the back button wouldn't take me back to the previous page.
But before clicking „Display Druid Query”, visualisation loads? If so, can you paste view definition?
Yes it does. Following is the view definition:
{
"dataCubeName": "Metrics_Cluster_V2",
"viewDefinitionVersion": "4",
"viewDefinition": {
"visualization": "line-chart",
"timezone": "Etc/UTC",
"filters": [
{
"type": "time",
"ref": "time",
"timePeriods": [
{
"duration": "PT1H",
"step": -1,
"type": "latest"
}
]
}
],
"splits": [
{
"type": "time",
"dimension": "time",
"granularity": "PT1M",
"sort": {
"period": "",
"type": "dimension",
"direction": "ascending",
"ref": "time"
},
"limit": null
}
],
"series": [
{
"reference": "count",
"format": {
"type": "default",
"value": ""
}
},
{
"reference": "events",
"format": {
"type": "default",
"value": ""
}
},
{
"reference": "min",
"format": {
"type": "default",
"value": ""
}
}
],
"pinnedDimensions": [
"_cluster",
"service",
"metric",
"host"
],
"pinnedSort": "events",
"legend": null,
"highlight": null
}
}
And I assume in config you have defined timeAttribute: time
? Or you run without config? If not, maybe introspection can’t infer timeAttribute. Nevertheles, I will try reproduce issue.
Yeah I have timeAttribute: time
set in my config.yaml. Are you able to see Druid queries on your end? I'm trying to figure out if it is a config issue on my side.
Yes, Druid queries modal works in our configuration on 1.14. My only suspicion is that when creating simulated external (https://github.com/allegro/turnilo/blob/master/src/client/modals/druid-query-modal/druid-query-modal.tsx#L34) we somewhat lose knowledge about time dimension.
Ok, I can't reproduce that on my end, but if you feel courageous, can you paste me there your plywood expression for this view? It is visible in Network tab in DevTools in Request Payload for plywood
endpoint. If you have pinboard open, there will be two requests, you can paste both, I will figure out which is which.
Error you showed is thrown when filter expression is just LiteralExpression
from plywood
. It shouldn't be according to your ViewDefinition but who knows, maybe you hit some edge case ...
Clicking on Display Druid Query generates only one request and this request does not seem to have an plywood expression header. Maybe I'm looking at the wrong place? I'll try to investigate this further today
Maybe it's related. https://github.com/allegro/turnilo/pull/394 . Should be fixed in v1.15. Btw, @adrianmroz when is the release? :)
Soon ...
On serious note, we're running beta in our company and it's looking promising, so I would say next week.
And here it is: https://github.com/allegro/turnilo/releases/tag/1.15.0
@a2l007 did the issue gone using version ^1.15
?
Close due to inactivity.
Attempting to access the "Display Druid Query" option lands in a blank page. I can see the following error in the logs: