DISPLAYS_AS
All functions > COMPARISON > DISPLAYS_AS
Returns TRUE if two values are not distinct, treating NULL values as comparable.
Syntax
DISPLAYS_AS(expr1, expr2) sql
Arguments
| Parameter | Type | Required | Description |
|---|---|---|---|
value1 | BIGINT | Yes | First value to compare |
value2 | BIGINT | Yes | Second value to compare |
Returns
BOOLEAN - TRUE if values are not distinct, FALSE otherwise
Notes
- Unlike regular equality (
=), this function treats NULL values as comparable NULL DISPLAYS_AS NULLreturns TRUE (they are the same)value DISPLAYS_AS NULLreturns FALSE if value is not NULLNULL DISPLAYS_AS valuereturns FALSE if value is not NULL- Both values must be of the same type
- Standard SQL alias: IS_NOT_DISTINCT_FROM
- Opposite of NOT_DISPLAYS_AS function
- Can be used with operator syntax:
value1 IS NOT DISTINCT FROM value2
Aliases
IS_NOT_DISTINCT_FROM