Commit 1303dc7a by Carl Bergquist Committed by GitHub

Merge pull request #10704 from alexanderzobnin/fix-backend-plugin-table-rows

plugins: return table with empty rows array insteaf of nil
parents 3a0459e4 db7890ec
...@@ -125,6 +125,7 @@ func (tw *DatasourcePluginWrapper) mapTable(t *datasource.Table) (*tsdb.Table, e ...@@ -125,6 +125,7 @@ func (tw *DatasourcePluginWrapper) mapTable(t *datasource.Table) (*tsdb.Table, e
}) })
} }
table.Rows = make([]tsdb.RowValues, 0)
for _, r := range t.GetRows() { for _, r := range t.GetRows() {
row := tsdb.RowValues{} row := tsdb.RowValues{}
for _, rv := range r.Values { for _, rv := range r.Values {
......
Markdown is supported
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