Error when using count with no results in grafana

I’ve got a panel in grafana with a count query. Specifically:

count_over_time({unit="foo.service"} |= "ClientConnect" [1m])

Which with grafana 8.2.0 returns:

Query error
e.data.result is null

This doesn’t seem optimal - most of the time there will be no results for this query. How can I make it return 0 instead? Or is that an actual bug on grafana’s side?

:wave: you can use the union or of the logical binary operators:

count_over_time({unit="foo.service"} |= "ClientConnect" [1m] or vector(0))

Could you try this out?