-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
✅ Upgrade metricsql #3
Conversation
If the review would prefer I could make two separate PRs, one for each commit. And then merge the second PR after the first is merged |
Thanks for your interests. Three questions for this PR:
|
done. |
721093b
to
e9b3651
Compare
Marking as draft until #4 is merged |
No longer need to maintain fork Correctness verified by tests
e9b3651
to
2b67bdd
Compare
Circling back to this PR, would you please give me an example of a PromQL expression that metricsql would not parse? |
@@ -46,11 +46,12 @@ func prettier(expr metricsql.Expr, ident int) []byte { | |||
var b bytes.Buffer | |||
|
|||
wrapParensWhenNecesary(e.Expr, &b, ident) | |||
if len(e.Window) > 0 || len(e.Step) > 0 { | |||
b.WriteString(fmt.Sprintf("[%s:%s]", e.Window, e.Step)) | |||
if (*e.Window).Duration(1) > 0 || e.Step.Duration(1) > 0 { |
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.
Why this change?
IMO, metricsql can't parse metric name with UTF-8. I have filed an issue, but seems they have no interests |
You need to rebase with master, I have added CI in it. |
Close since no updates. |
Note to reviewer
Changes
✅ Add tests
⬆️ Upgrade metricsql