mirror of
https://github.com/grafana/grafana.git
synced 2025-09-27 23:13:45 +08:00
toDataQueryResponse: check arrow parse errors (#24349)
This commit is contained in:
@ -37,12 +37,17 @@ export function toDataQueryResponse(res: any): DataQueryResponse {
|
|||||||
|
|
||||||
if (dr.dataframes) {
|
if (dr.dataframes) {
|
||||||
for (const b64 of dr.dataframes) {
|
for (const b64 of dr.dataframes) {
|
||||||
|
try {
|
||||||
const t = base64StringToArrowTable(b64);
|
const t = base64StringToArrowTable(b64);
|
||||||
const f = arrowTableToDataFrame(t);
|
const f = arrowTableToDataFrame(t);
|
||||||
if (!f.refId) {
|
if (!f.refId) {
|
||||||
f.refId = refId;
|
f.refId = refId;
|
||||||
}
|
}
|
||||||
rsp.data.push(f);
|
rsp.data.push(f);
|
||||||
|
} catch (err) {
|
||||||
|
rsp.state = LoadingState.Error;
|
||||||
|
rsp.error = toDataQueryError(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user