Repository navigation
Commit f1a9233
committed
docs(skills): teach that a column with no value fails an ordering filter, and where a per-measure filter runs
objectstack-query rules/filters.md: `$gt` / `$gte` / `$lt` / `$lte` /
`$between` never match a row whose column is null or absent, in `where`,
an aggregation's `filter` and `having` alike; the `$or` + `$null: true`
spelling keeps those rows; `null` is not an ordering comparand. Paid for
in the same file by two restatements: the case-sensitivity paragraph
SKILL.md's String Operators section carries, and a second `$between`
example. 9925 -> 9892 bytes, 2482 -> 2473 tokens; the ceiling row stays.
rules/aggregation.md: a per-measure `filter` no longer "forces the
in-memory path". A driver declaring `supports.aggregationFilter` runs it
in the database, answering and refusing as that datasource's `where`
does; any other driver has the engine evaluate it over the scoped rows.
`having` on an `avg` / `min` / `max` over no rows fails an ordering
test. 8381 -> 8883 bytes, 2096 -> 2221 tokens, inside the 2357 row.
One eval case (id 8) where the no-value rule decides a measure filter.
Claude-Session: https://claude.ai/code/session_01ADHkmQokeaWJKGm2S7ZrDA
Co-authored-by: Claude <noreply@anthropic.com>1 parent b8ac0e2 commit f1a9233
4 files changed
Lines changed: 45 additions & 21 deletions
File tree
- .changeset
- skills/objectstack-query
- evals
- rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
| 30 | + | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
| |||
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
127 | | - | |
| 124 | + | |
128 | 125 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
| |||
0 commit comments