Skip to content

[TraceQL] Fix to put all conditions following a select clause into the second pass - #4600

Merged
mdisibio merged 3 commits into
grafana:mainfrom
mdisibio:2025-01-23-traceql-second-pass-fixes
Jan 24, 2025
Merged

[TraceQL] Fix to put all conditions following a select clause into the second pass#4600
mdisibio merged 3 commits into
grafana:mainfrom
mdisibio:2025-01-23-traceql-second-pass-fixes

Conversation

@mdisibio

@mdisibio mdisibio commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

What this PR does:
Found some incorrect behavior from #2188 (comment) and this fixes it. The idea is that all clauses after a select() operation should be considered in the second pass and optional, but it was being put in the first pass and required. Rare, but think it's worth fixing as this is a work-around for attribute == nil check.

Which issue(s) this PR fixes:
Relates to #2188

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
@mdisibio mdisibio changed the title WIP: [TraceQL] Fix to put all conditions following a select clause into the second pass Jan 23, 2025
@mdisibio
mdisibio marked this pull request as ready for review January 23, 2025 16:46

@ie-pham ie-pham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool beans

@mdisibio
mdisibio merged commit fc89a14 into grafana:main Jan 24, 2025
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
…e second pass (grafana#4600)

* Fix to put all conditions following a select clause into the second pass

* more tests

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants