What is the meaning of applying avg() over a range vector such as:
avg(meric_name[1d])
As per the documentation here, it only operated on an instant vector. The metric_name[1d] returns a range vector. This query still runs over the range vector and returns a result without any complains about being wrong.
This correctly returns a parse error:
which you can see yourself at http://demo.robustperception.io:9090/graph?g0.expr=avg(meric_name%5B1d%5D)%20&g0.tab=1&g0.stacked=0&g0.range_input=1h
So I suspect you were running a different query.