Skip to main content
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

ArgumentDescription
fieldThe 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 orders
WHERE
KATER__IS_NOT_NULL(orders.region)
GROUP BY
orders.region
ORDER BY
1
RegionOrders
AMER728
APAC671
EMEA777
LATAM760

Compiles to

The call compiles to the same SQL on DuckDB and on Snowflake.

NOT orders.region IS NULL

See also