On this page
Kater SQL Functions Conditions
KATER__IS_NOT_NULL
True where the field has a value.
Family: Conditions
Syntax
KATER__IS_NOT_NULL(field)Arguments
| Argument | Description |
|---|---|
field | The field to test. |
Returns
TRUE or FALSE, never NULL.
Usage notes
- As a filter, it takes no value. A reader turns it on or off.
Example
This Sandbox query reads the sample shop’s orders. The table shows the rows that Kater gave.
SELECT orders.region AS "Region", EVAL(orders.count_distinct__order_id) AS "Orders"FROM kater_dataset.orders AS ordersWHERE KATER__IS_NOT_NULL(orders.region)GROUP BY orders.regionORDER BY 1| Region | Orders |
|---|---|
| AMER | 728 |
| APAC | 671 |
| EMEA | 777 |
| LATAM | 760 |
Compiles to
The call compiles to the same SQL on DuckDB and on Snowflake.
NOT orders.region IS NULLSee also
- Filters and parameters
- Other functions in Conditions:
KATER__IS_EQUAL_TO,KATER__IS_NOT_EQUAL_TO,KATER__IS_GREATER_THAN,KATER__IS_AT_LEAST,KATER__IS_LESS_THAN,KATER__IS_AT_MOST,KATER__IS_BETWEEN,KATER__IS_ONE_OF,KATER__IS_NOT_ONE_OF,KATER__TEXT_CONTAINS,KATER__TEXT_DOES_NOT_CONTAIN,KATER__IS_NULL