Skip to content

Commit 30dcb50

Browse files
authored
fix(search): Allow mixing wildcards w/ non-wildcards (#100644)
Reported in #100635. Issue is that we're not correctly recurring when have an array of values. Let's do that instead. Before: <img width="1462" height="269" alt="Screenshot 2025-09-30 at 3 18 38 PM" src="https://github.com/user-attachments/assets/9b5e6a5b-4eef-404c-9ec1-d81f72d51c35" /> After: <img width="1462" height="478" alt="Screenshot 2025-09-30 at 3 19 28 PM" src="https://github.com/user-attachments/assets/15fc6325-bdfb-4bbd-8e49-4ad9511c75f6" />
1 parent e93ef6a commit 30dcb50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sentry/search/events/filter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,11 @@ def convert_search_filter_to_snuba_query(
544544
return None
545545
elif name in key_conversion_map:
546546
return key_conversion_map[name](search_filter, name, params)
547-
elif name in ARRAY_FIELDS and search_filter.value.is_wildcard():
547+
elif (
548+
name in ARRAY_FIELDS
549+
and search_filter.value.is_wildcard()
550+
and not search_filter.value.is_str_sequence()
551+
):
548552
# Escape and convert meta characters for LIKE expressions.
549553
raw_value = search_filter.value.raw_value
550554
assert isinstance(raw_value, str), raw_value

0 commit comments

Comments
 (0)