Open changov opened 10 months ago
hi @changov Thank you for reporting this issue
Could you include the raw response from the Kusto query? This would help us understand the structure of the data returned from the database.
The query inspector shows only 1 result frame. :-( This means there's a problem with the way the query is made via the Kusto plugin. I don't know the details of the API there. The most productive way for you to debug would be to get a free Kusto cluster. The repro above is self-contained, so you need just an empty database in any cluster as a target. See how the Kusto web explorer shows multiple result tables:
What happened?
Trying to get a basic node graph to render based on a Kusto query. This dataset should be conformant with the documented graph data model:
I get only a stack of nodes rendered:
If I comment out the
nodes | as nodes
line, I get a graph! This tells me Grafana cannot pick up both result tables from Kusto. (Theas
operator names each datatable in the result.) Seems like a bug.What did you expect to happen?
With the Node Graph visualization, I expect a graph. :-)
Did this work before?
N/a
How do we reproduce it?
[above]
Is the bug inside a dashboard panel?
Panel debug snapshot dashboard
```json { "panels": [ { "type": "nodeGraph", "title": "Reproduced with embedded data", "gridPos": { "h": 13, "w": 15, "x": 0, "y": 0 }, "datasource": { "type": "grafana", "uid": "grafana" }, "id": 2, "targets": [ { "refId": "A", "datasource": { "type": "grafana", "uid": "grafana" }, "queryType": "snapshot", "snapshot": [ { "schema": { "refId": "A", "meta": { "typeVersion": [ 0, 0 ], "custom": { "ColumnTypes": [ "string", "string" ] }, "executedQueryString": "let nodes = datatable(id:string, subtitle:string)\r\n[\r\n \"north\", \"mainland\",\r\n \"east\", \"island\",\r\n \"south\", \"mainland\",\r\n \"west\", \"island\"\r\n];\r\nlet edges = datatable(id:string, source:string, target:string, subtitle:string)\r\n[\r\n \"b1\", \"north\", \"east\", \"bridge\",\r\n \"b2\", \"north\", \"west\", \"ped bridge\",\r\n \"b3\", \"north\", \"west\", \"bridge\",\r\n \"b4\", \"east\", \"west\", \"overpass\",\r\n \"b5\", \"east\", \"south\", \"bridge\",\r\n \"b6\", \"west\", \"south\", \"bridge\",\r\n \"b7\", \"west\", \"south\", \"bridge\"\r\n];\r\nnodes | as nodes;\r\nedges | as edges\r\n" }, "fields": [ { "name": "id", "type": "string", "typeInfo": { "frame": "string", "nullable": true }, "config": {} }, { "name": "subtitle", "type": "string", "typeInfo": { "frame": "string", "nullable": true }, "config": {} } ] }, "data": { "values": [ [ "north", "east", "south", "west" ], [ "mainland", "island", "mainland", "island" ] ] } } ] } ] }, { "gridPos": { "h": 7, "w": 9, "x": 15, "y": 0 }, "id": 5, "options": { "content": "Environment (with versions)?
Grafana: Azure Managed Grafana Browser: Edge
Grafana platform?
Other
Datasource(s)?
Kusto