PromQL: Improve parser#94091
Conversation
|
Workflow [PR], commit [d0739ab] Summary: ❌
|
c6aedb0 to
2376b56
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 28 out of 40 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
src/Parsers/Prometheus/parseTimeSeriesTimestamp.cpp:1
- On line 560,
millisecondsis being added toscaled_seconds, butmillisecondsshould bescaled_milliseconds(computed earlier). The current code adds unscaled milliseconds to scaled seconds, producing incorrect results.
#include <Parsers/Prometheus/parseTimeSeriesTimestamp.h>
…re between digits).
419ce37 to
7ca2d0f
Compare
7ca2d0f to
5478eb1
Compare
5478eb1 to
c66a6bb
Compare
8adb206 to
c6be808
Compare
c6be808 to
83892f3
Compare
|
Ready for review |
| UnaryOperator(-) | ||
| ScalarLiteral(1) | ||
| )"); | ||
|
|
There was a problem hiding this comment.
Can you please also add these queries? https://github.com/prometheus/compliance/blob/3de836d255ffc98bbf7d58eb487b7662b496d047/promql/promql-test-queries.yml#L34-L42
Queries .123, 1.23e-3, 0x3d, +Inf, NaN look very interesting.
There was a problem hiding this comment.
done
I also added most of other queries from https://github.com/prometheus/compliance/blob/main/promql/promql-test-queries.yml to this test.
|
CI failures are unrelated |
b290c0a
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Improve PromQL parser:
1_000_000)Part of #89356