简体   繁体   中英

How to avoid Grafana handling NULL values from Google BigQuery as 0

I have the doitintl BigQuery plugin (v2.0.2) installed for my Grafana instance (v8.2.7).

My SQL query is based on multiple tables and is joined with a full outer join on the timestamp column. Therefore, I have some null values returned and they are shown as such in the GCP BigQuery Console.

However, when I run the query in my time series panel, those null values are treated as zeros, leading to a graph that does not make sense.

Is there a way to avoid that behaviour in Grafana?

So it turns out this is a bug of the plugin, nothing from Grafana side nor settings.

However, Grafana has forked the plugin and this issue is fixed (tested with v0.1.10). Therefore, to avoid this issue, use the Grafana BigQuery datasorce plugin (note: at the time of writing the plugin is still in beta).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM