-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
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
feat: support PromQL scalar #3693
feat: support PromQL scalar #3693
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3693 +/- ##
==========================================
- Coverage 85.63% 85.23% -0.40%
==========================================
Files 944 945 +1
Lines 158776 159259 +483
==========================================
- Hits 135966 135744 -222
- Misses 22810 23515 +705 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
56208ca
to
34b251f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt the necessity of implementing scalar
as a plan. Can Expr
fit it?
6a4000c
to
623b6b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
623b6b6
to
7e13722
Compare
7e13722
to
fb0e458
Compare
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Support PromQL scalar function in greptimedb
Please explain IN DETAIL what the changes are in this PR and why they are needed:
ScalarCalculate
plan in PromQLScalarCalculate
return time series when we only have one time series, or directly returnNone
After this pr, we can achieve 100% compatibility with
node_exporter
PromQL queriesChecklist