From beeb44c042c6e3d9717a8ae8e2cc38196ae35509 Mon Sep 17 00:00:00 2001 From: Pierre Massat Date: Wed, 27 May 2026 08:16:15 -0700 Subject: [PATCH] test(eap): Query typed-colon attribute as boolean instead of number The test stored a boolean and queried it as a number, which only worked because the eap-items consumer double-wrote booleans into the float columns. Snuba is removing that double-write (getsentry/snuba#7689), so query the attribute with its real boolean type to keep the colon-in-key check meaningful. Refs getsentry/snuba#7689 Co-Authored-By: Claude Agent transcript: https://claudescope.sentry.dev/share/3VSGJW-FUgGjcTG0eu4482ebu89oDWTEdNjr8EZI-O4 --- .../api/endpoints/test_organization_events_span_indexed.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/snuba/api/endpoints/test_organization_events_span_indexed.py b/tests/snuba/api/endpoints/test_organization_events_span_indexed.py index e05edfe0b19843..caa9bee2834485 100644 --- a/tests/snuba/api/endpoints/test_organization_events_span_indexed.py +++ b/tests/snuba/api/endpoints/test_organization_events_span_indexed.py @@ -5016,8 +5016,8 @@ def test_typed_attributes_with_colons(self) -> None: response = self.do_request( { - "field": ["tags[flag.evaluation.feature.organizations:foo,number]"], - "query": "has:tags[flag.evaluation.feature.organizations:foo,number] tags[flag.evaluation.feature.organizations:foo,number]:1", + "field": ["tags[flag.evaluation.feature.organizations:foo,boolean]"], + "query": "has:tags[flag.evaluation.feature.organizations:foo,boolean] tags[flag.evaluation.feature.organizations:foo,boolean]:true", "project": self.project.id, "dataset": "spans", } @@ -5027,7 +5027,7 @@ def test_typed_attributes_with_colons(self) -> None: { "id": span["span_id"], "project.name": self.project.slug, - "tags[flag.evaluation.feature.organizations:foo,number]": 1, + "tags[flag.evaluation.feature.organizations:foo,boolean]": True, }, ]