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