Commit 30bf9bf0 by Ryan McKinley Committed by GitHub

TableData: support name (#16983)

parent d4a35213
......@@ -70,6 +70,7 @@ export interface Column {
}
export interface TableData extends QueryResultBase {
name?: string;
columns: Column[];
rows: any[][];
}
......
......@@ -19,6 +19,7 @@ function convertTableToSeriesData(table: TableData): SeriesData {
rows: table.rows,
refId: table.refId,
meta: table.meta,
name: table.name,
};
}
......
......@@ -78,6 +78,7 @@ export class TestDataDatasource implements DataSourceApi<TestDataQuery> {
for (const t of results.tables || []) {
const table = t as TableData;
table.refId = query.refId;
table.name = query.alias;
data.push(table);
}
......
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