Skip to content
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

Tracking Issue: Improve PromQL compliance #1042

Open
26 of 35 tasks
waynexia opened this issue Feb 20, 2023 · 4 comments
Open
26 of 35 tasks

Tracking Issue: Improve PromQL compliance #1042

waynexia opened this issue Feb 20, 2023 · 4 comments
Labels
C-enhancement Category Enhancements tracking-issue A tracking issue for a feature.

Comments

@waynexia
Copy link
Member

waynexia commented Feb 20, 2023

What type of enhancement is this?

User experience

What does the enhancement do?

Follows #596. The next stage after PromQL got initially supported is to improve its compatibility continuously.

Compliance History

PR Compliance Report Notes
#1022 72 / 548 (13.14%) 2023-02-19 stale NaN is avoided
#1049 112 / 548 (20.44%) 2023-02-21 stale NaN is avoided
#1061, #1066, #1072 181 / 548 (33.03%) 2023-02-23 stale NaN is avoided
#1289, #1287, #1291, #1258, #1304, #1306 280 / 548 (51.09%) 2023-04-03 stale NaN is avoided
#1345 298 / 548 (54.38%) 2023-04-07
#1362, #1641, #1844, #1838 365 / 548 (66.61%) 2023-06-28
#2626, #2651, #2839, #2854, #2879 450 / 548 (82.12%) 2023-12-05

Tasks

Implementation challenges

No response

@aierui
Copy link

aierui commented Mar 10, 2023

Can this part of PromQL be abstracted into a separate crate? Provide it to IOx for reuse.

@waynexia
Copy link
Member Author

Can this part of PromQL be abstracted into a separate crate? Provide it to IOx for reuse.

It's already a separate crate under src/promql

@dekelpilli
Copy link

dekelpilli commented Jan 22, 2024

I can create a separate issue if you prefer, but there's currently a bug where queries that use {__name__="metric_name"} instead of the sugar alternative (metric_name{}) cause greptime to attempt to look up a value in a column named __name__ in addition to using it to infer the table name.

@waynexia
Copy link
Member Author

Hi @dekelpilli, thanks for reporting it! I've filed #3213 to fix it.

This might be a regression after implementing the __field__ grammar extension. We didn't have a test to cover this behavior before 😖 (it's added now, thanks again ❤️)

@killme2008 killme2008 pinned this issue Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category Enhancements tracking-issue A tracking issue for a feature.
Projects
None yet
Development

No branches or pull requests

3 participants