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

LogQL parser gets confused on | unwrap offset #15402

Open
seizethedave opened this issue Dec 12, 2024 · 0 comments
Open

LogQL parser gets confused on | unwrap offset #15402

seizethedave opened this issue Dec 12, 2024 · 0 comments
Labels
area/logql type/bug Somehing is not working as expected

Comments

@seizethedave
Copy link
Contributor

Describe the bug
I have a log field called offset. This query:

max_over_time(
   {pod="block-builder-0"} |= "successfully committed offset to kafka" | logfmt | unwrap offset [1m]
)

gives me a parse error:

parse error at line 2, col 90: syntax error: unexpected offset, expecting IDENTIFIER or BYTES_CONV or DURATION_CONV or DURATION_SECONDS_CONV

because offset is a LogQL keyword.
To Reproduce

Just run the query.

Expected behavior
I expect that the parser might understand offset here is a label name.

@chaudum chaudum added the type/bug Somehing is not working as expected label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logql type/bug Somehing is not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants