Skip to main content

Other Functions

This section collects assorted utilities that do not fit into the major functional groups.

FunctionDescription
ASSUME_NOT_NULLHint that values in a nullable column are never NULL
EXISTSReturn TRUE if a subquery produces any rows
GROUPINGReveal whether an output column was aggregated in GROUPING SETS
HUMANIZE_NUMBERFormat large numbers with unit suffixes
HUMANIZE_SIZEFormat byte counts into readable units
REMOVE_NULLABLEStrip NULLability from a column value
TO_NULLABLEConvert a value to a nullable type
TYPEOFReturn the name of a value’s data type