Skip to main content
On this page

Kater SQL Functions Conditions

KATER__IS_EQUAL_TO

True where the field equals the value.

Family: Conditions

Syntax

KATER__IS_EQUAL_TO(field, value)

Arguments

ArgumentDescription
fieldThe value to test: a field, or a measure’s value, such as EVAL(orders.sum__amount).
valueThe value to compare with. A value, or a parameter a reader supplies.

Returns

TRUE or FALSE. It is NULL where the field is empty, so a filter leaves that row out.

Usage notes

  • On a timestamp, it matches one exact instant, not a whole day. To match a day, test KATER__DATE(field).

Example

This Sandbox query reads the sample shop’s orders. The table shows the rows that Kater gave.

SELECT
orders.currency AS "Currency",
EVAL(orders.count_distinct__order_id) AS "Orders"
FROM kater_dataset.orders AS orders
WHERE
KATER__IS_EQUAL_TO(orders.currency, 'EUR')
GROUP BY
orders.currency
ORDER BY
1
CurrencyOrders
EUR532

Compiles to

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

orders.currency = 'EUR'

See also