Skip to content

Pierre/eap array wildcard search v2#7777

Draft
xurui-c wants to merge 7 commits intomasterfrom
pierre/eap-array-wildcard-search-v2
Draft

Pierre/eap array wildcard search v2#7777
xurui-c wants to merge 7 commits intomasterfrom
pierre/eap-array-wildcard-search-v2

Conversation

@xurui-c
Copy link
Member

@xurui-c xurui-c commented Feb 27, 2026

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

phacops and others added 7 commits February 26, 2026 15:55
Support LIKE/NOT_LIKE operations on TYPE_ARRAY attribute keys in the EAP
RPC filter layer. This enables searching for rows where any element in an
array attribute matches a wildcard pattern (e.g. `%error%`).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/MPMg6cd5C44sTcO2w7G21dFgr2ROlgzLl2IsE6tXT_M
…ession

Address review feedback: instead of adding TYPE_ARRAY handling to the
shared attribute_key_to_expression function, build the array extraction
expression directly in the filter code where it's needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/pjQ2FphvcZ1pKVc4nPolPe74-FfTxXiVaeKc5q4XyME
Handle TYPE_ARRAY as an early return in comparison filter processing
so unsupported operations (EQUALS, IN, etc.) raise immediately instead
of producing invalid SQL. Add test for this error path.

Co-Authored-By: Claude <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/hhni4eW0BB_sX1hx1k3ocFkKDVAR5tFkoNu10Z-uERw
Add check that the comparison value is a string before using val_str
for TYPE_ARRAY LIKE/NOT_LIKE operations. Without this, a non-string
value silently defaults to an empty string pattern.

Co-Authored-By: Claude <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/H-XBt-koklI88xXMMmB8rnyAuP-g8fRDyDXx9KD7YI4
Add end-to-end tests demonstrating LIKE and NOT_LIKE filters on
TYPE_ARRAY attributes, verifying that items with matching array
elements are correctly included/excluded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/jlBT3oyR1enG1rD_up18ROqoFcmPcj0MGTgsEhptGec
Update test assertion to check for FunctionCall instead of
DangerousRawSQL, matching the rebased implementation that uses
JsonPath DSL via attribute_key_to_expression.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/PUQy8YbxsajMsffTOp8W_J6aEJ2PVDa9U_b0bmqdRWU
@xurui-c xurui-c changed the base branch from master to pierre/eap-array-wildcard-search February 27, 2026 20:38
Base automatically changed from pierre/eap-array-wildcard-search to master March 2, 2026 21:49
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.

2 participants