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

TraceQL: Fix lookups .attr != nil with special columns #4864

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

stoewer
Copy link
Contributor

@stoewer stoewer commented Mar 17, 2025

What this PR does:
Improves attribute existence checks using { .attr != nil }. Queries involving well-known attributes and attributes stored in dedicated columns currently don't check generic attribute columns for attributes with the same name but a different type.

For example, the query { span.http.status_code != nil } will not match spans where http.status_code exists as a string (e.g. "200").

Which issue(s) this PR fixes:
Fixes #2968

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@stoewer stoewer changed the title Fix lookups .attr != nil with special columns TraceQL: Fix lookups .attr != nil with special columns Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

!= nil only supports special columns
1 participant