PromQL queries with binary operators after an or
operator result in error
#5151
Labels
C-bug
Category Bugs
or
operator result in error
#5151
What type of bug is this?
Unexpected error
What subsystems are affected?
Query Engine
Minimal reproduce step
On a metric with data in the given time range, execute
The actual query I want to run is
As a way to default missing/filtered values to 0. Usually I would use
... or label_replace(vector(0), ...)
, butlabel_replace
isn't supported yet.What did you expect to see?
The left query values being ORed with 0
What did you see instead?
PlanQuery: Internal error during building DataFusion plan: No field named my_metric."greptime_value * Float64(0)". Valid fields are my_metric.my_tag, my_metric.greptime_timestamp, "greptime_value * Float64(0)".
What operating system did you use?
Mac OS 15.1
What version of GreptimeDB did you use?
0.11.0
Relevant log output and stack trace
No response
The text was updated successfully, but these errors were encountered: