Trino Functions
Conditional Functions
coalesce
Returns the first non-null value in the argument list. Like a CASE expression, arguments are only evaluated if necessary.
Examples:
examples.sql
Supported Signatures
if
Evaluates expression parameter and returns second if condition is true, otherwise null is returned and true_value is not evaluated.
Examples:
examples.sql
Supported Signatures
nullif
Returns null if value1 equals value2, otherwise returns value1.
Examples:
examples.sql
Supported Signatures
try
Evaluate an expression and handle certain types of errors by returning NULL.
Supported Signatures