Commit f35a846
committed
test(integration): expand corpus — like, ne, isNull filter operators
Adds two new query scenarios so the corpus exercises more of the filter-op
vocabulary both runners advertise. Plus one real bug surfaced by the new
isNull scenario.
- queries/filter-like-and-ne.yaml: Program titles via `like "Found%"` +
status via `ne "PUBLISHED"`. Like pattern is case-aligned so the test
doesn't depend on LIKE-vs-ILIKE wiring.
- queries/filter-is-null.yaml: Week label `isNull: true` + `isNull: false`,
verifying `IS NULL` translation (not `= NULL`, which is always false).
Bug fix surfaced by the new scenario:
- C# DbContextAdapter.BuildOp: `isNull` was checking `rawValue is true`,
but YamlDotNet deserializes a YAML boolean into a `string` ("true" /
"false") when the target is `object?`. The dispatch silently took the
`Expression.Not(...)` branch — `isNull: true` returned the rows where
label was NOT NULL. Fix: accept both `bool` and `string` shapes; throw
on anything else so a future malformed scenario fails loud.
Gates: TS integration 11/11, C# integration 11/11.1 parent 20e78f8 commit f35a846
3 files changed
Lines changed: 72 additions & 2 deletions
File tree
- fixtures/persistence-conformance/queries
- server/csharp/MetaObjects.IntegrationTests/Runner
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
0 commit comments