Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRange vector incorrectly accepts embedded offset modifier #1338
Comments
This comment has been minimized.
This comment has been minimized.
|
According to the documentation of range selector and offsets, the behavior of the first expression is undefined. I believe it's an oversight that it parses the range vector expression ignoring the offset. |
grobie
added
the
bug
label
Jan 25, 2016
grobie
changed the title
Invalid Syntax is allowed
Range vector incorrectly accepts embedded offset modifier
Jan 25, 2016
grobie
closed this
in
#1339
Jan 25, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
PeterZaitsev commentedJan 25, 2016
Hi,
rate(mysql_global_status_questions{alias="$host"} offset 1d[$interval])
is allowed and it returns data without any offset.
rate(mysql_global_status_questions{alias="$host"}[$interval] offset 1d)
is correct syntax which returns proper data
Is there any reason 1st variant does not return and error ?