We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API improvement, User experience
Current tql eval parser only accepts timestamp literal as start andend parameter, for example:
tql eval
start
end
TQL eval (1677057993, 1677058993, '1m') rate(prometheus_http_requests_total{job="prometheus"}[5m]);
Refer to https://docs.greptime.com/reference/sql/tql#eval
I think it's better to accept SQL functions such as now() for these parameters:
now()
TQL eval ((now() - '5 minute'::interval)/1000, now()/1000, '1m') rate(prometheus_http_requests_total{job="prometheus"}[5m]);
Additionally, it would be beneficial if we could simplify the syntax by adding some syntactic sugar:
TQL eval(now - '5m', now, '1m') rate(prometheus_http_requests_total{job="prometheus"}
No response
The text was updated successfully, but these errors were encountered:
@killme2008 happy to give it a go
Sorry, something went wrong.
lookback
etolbakov
No branches or pull requests
What type of enhancement is this?
API improvement, User experience
What does the enhancement do?
Current
tql eval
parser only accepts timestamp literal asstart
andend
parameter, for example:Refer to https://docs.greptime.com/reference/sql/tql#eval
I think it's better to accept SQL functions such as
now()
for these parameters:Additionally, it would be beneficial if we could simplify the syntax by adding some syntactic sugar:
Implementation challenges
No response
The text was updated successfully, but these errors were encountered: