-
Notifications
You must be signed in to change notification settings - Fork 522
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
Search query TraceQL with more than 1024 characters fails #4321
Comments
Can you share the query that threw this error? This is extremely easy to test if anyone wants to try fixing it or just do some investigation. Just add a test like this to
and slap the giant query in there. You can step debug through this and see exactly how it breaks. |
@joe-elliott this is the query I am using:
|
Got the same error here. It looks like the presence of the select clause with event attributes is causing the error. Removing the event attributes from the select clause returns a valid response (even after adding more filters to ensure more than 1024 chars). Selecting event attributes is a new thing in v2.6, right? |
Actually, no. If I test with @juliomeinerz-atscale's query I get the same error. If I add at least one more His query has 1070 chars. The updated one has 1127. Testing with arbitrary values, but keeping his query structure (same attributes filtered and selected), it seems like I get the same error when the query is between 1052 and 1119 characters long. |
Yes
This is quite strange :) |
Describe the bug
If you pass a query string with more than 1024 characters on /api/search endpoint, Tempo throws an error:
invalid TraceQL query: parse error at line 1, col 1025: syntax error: unexpected $end, expecting ) or ,
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Query works without errors.
Environment:
Additional Context
This is probably a duplicate from #3747 but since it was not resolved there, I am creating this one.
The text was updated successfully, but these errors were encountered: