You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The following TraceQL query returns nothing:
{} | by(span.does_not_exist)
Whereas this query returns grouped spans by(span.does_not_exist) = nil
{ span.does_exist = <value that exists> } | by(span.does_not_exist)
The reason is that b/c when the engine creates conditions for the fetch layer in the first example it only creates one condition which asks for the attribute name does_not_exist with the operation OpNone. The fetch layer interprets OpNone more like OpExists and returns nothing. We need the fetch layer to interpret OpNone as simply "fetch" and add a new operation OpExists.
Current workaround would be to put a known existing attribute into the conditions. Something like:
Humorously this bug allows for searching for attribute existence which is a feature request. The above query will return every span where the attribute span.does_not_exist exists regardless of it's value.
This issue has been automatically marked as stale because it has not had any activity in the past 60 days.
The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed after 15 days if there is no new activity.
Please apply keepalive label to exempt this Issue.
Describe the bug
The following TraceQL query returns nothing:
Whereas this query returns grouped spans
by(span.does_not_exist) = nil
The reason is that b/c when the engine creates conditions for the fetch layer in the first example it only creates one condition which asks for the attribute name
does_not_exist
with the operationOpNone
. The fetch layer interpretsOpNone
more likeOpExists
and returns nothing. We need the fetch layer to interpretOpNone
as simply "fetch" and add a new operationOpExists
.Current workaround would be to put a known existing attribute into the conditions. Something like:
The text was updated successfully, but these errors were encountered: