Defined null and missing-value semantics
Documents and demonstrates how every operator treats null, undefined, NaN, empty strings and missing fields. Each operator's behaviour is configurable through a single nullHandling policy. Predictable null handling prevents silent data loss in filtered views.
Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A matrix table that shows, for each operator, which of the values null, undefined, NaN, '', 0 and a valid value matches. Next to it is a live grid using the same rows.
Expected behavior
The matrix and the grid update together. Under the default policy, null never matches comparison operators (including negations) and matches only blank. Switching to treatAsZero makes null match 'equals 0' on number columns.
Planned API surface
filterParams.nullHandling ('excludeFromComparisons' | 'treatAsEmpty' | 'treatAsZero')gridOptions.filterNullPolicyfilterParams.blankValuesAcceptance criteria
- The default policy is excludeFromComparisons: null and undefined match only the blank operator. (pending)
- Negated operators (notEquals, notContains) exclude nulls under the default policy. This deliberate choice is documented. (pending)
- Each policy produces the documented matrix for every operator and column type. (pending)
- A missing field path (for example 'a.b' where a is undefined) is treated as undefined and does not throw. (pending)