You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2ddee28
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/developer_docs/semantic-layer-provider-testing.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,9 @@ separate integration tests.
59
59
|`semantic_change_catalog`| No-argument callable changing the controlled source catalog: add a visible member on every call, without clearing provider caches. |
60
60
|`semantic_provider_class`|`(importable_module_name, class_name)` of the layer for an isolated import and static-schema check. Dependencies must already be installed. |
61
61
62
-
Required query cases are `identity`, `grain`, `null`, `not_null`, `or`, and
63
-
`order_limit`. Use member names distinct from private IDs and display labels.
62
+
Required query cases are `identity`, `grain`, `null`, `not_null`, `or`,
63
+
`or_not_in`, `or_not_equals`, `or_not_like`, `or_not_ilike`, and `order_limit`.
64
+
Use member names distinct from private IDs and display labels.
64
65
For `grain`, use a grain-bearing dimension with data whose aggregation distinguishes the selected grain from raw values. Multiple grain variants for one name are allowed, not required. When the catalog declares no grain-bearing dimension, the case skips with an explicit reason before looking up its fixture entry; such providers may omit the `grain` entry. This reports unexercised grain coverage, not a passing grain check.
65
66
NULL and grouped-OR fixtures must select NULL and non-NULL branches observably;
66
67
the `or` case must use the host-normalized shape: one `OrFilter` containing
@@ -74,6 +75,22 @@ The SQLite example uses a February lower bound, with A and NULL rows on both sid
74
75
of that bound: the correct totals are NULL=1, A=5, B=8. This distinguishes either
75
76
ordering of the outer AND and the OR group. A February C row with amount 6 must
76
77
be excluded; dropping the OR group incorrectly adds C=6 to the result.
78
+
The four exclusion cases use the same grouped shape, replacing `IN` with
79
+
`NOT IN`, `!=`, `NOT LIKE`, or `NOT ILIKE`, respectively. The `NOT IN` operand
80
+
must contain at least two non-NULL values; pattern operands must contain a
81
+
wildcard. Keep an outer AND comparison and group by the filtered dimension,
82
+
with both NULL and non-NULL groups in the expected result. Seed rows on both
83
+
sides of the outer comparison and rows excluded by the negated leaf, so dropping
84
+
the NULL branch, the group, its parentheses or the outer predicate changes the
85
+
answer. A plain non-empty negated leaf still excludes NULL: it is the explicit
86
+
`IS_NULL` branch that retains NULL rows in a user exclusion.
87
+
The SQLite example expects NULL=1 and C=6 for `NOT IN {A, B}`; NULL=1, C=6,
88
+
B=8 for `!= A`; and NULL=1, A=5, C=6 for `NOT LIKE 'B%'` and `NOT ILIKE 'b%'`.
89
+
These are required conformance cases, not optional advertised capabilities.
90
+
The example also has a January C row, so a lost pair of parentheses is observable
91
+
whether the outer AND predicate appears before or after the OR group.
92
+
Consumers upgrading the kit must provide the four fixture entries and review
93
+
the new case IDs in any explicit case allowlist before certifying providers.
77
94
Seed more result rows than the limit, in an order that differs from the requested
78
95
sort. The suite compares exact Arrow column names, types, values and row order,
79
96
without prescribing column order or field nullability.
0 commit comments