Skip to content

Commit 33c73fd

Browse files
committed
test(rest): the one-bound $between refusal reaches the caller in the shared face's words (#20010)
Claude-Session: https://claude.ai/code/session_01Evb5jFDZGKQE9KG4jbMfMF Co-authored-by: Claude <noreply@anthropic.com>
1 parent a1bdbf1 commit 33c73fd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎packages/rest/src/analytics-filter-refusal-envelope.test.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,17 @@ describe('[#5352] POST /analytics/dataset/query — a filter refusal reaches the
194194
message: /carries a field constraint with zero operators/,
195195
},
196196
{
197+
// [#20010] RE-WORDED, same verdict: still a real normalizer refusal,
198+
// still 400 INVALID_FILTER through this seam. PR #20032 hands every field
199+
// entry of an object-form `where` to the shared comparand-shape face
200+
// (`assertListComparandShapes`) before any node is built, and the face's
201+
// own rule answers first — a list operator takes a list, `$between` a
202+
// two-element [min, max] (#5869, moved to the face by #9228). So the
203+
// message is the face's, the same bytes the FilterArray spelling gets;
204+
// the analytics "needs a two-element" sentence is no longer reached.
197205
name: 'a $between with one bound',
198206
runtimeFilter: { amount: { $between: [10] } },
199-
message: /needs a two-element \[min, max\] array/,
207+
message: /Operator "\$between" on field "amount" requires a \[min, max\] value array/,
200208
},
201209
{
202210
name: 'an unsupported top-level operator',

0 commit comments

Comments
 (0)