Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
Implementing IFNULL() for BIG_QUERY dialect
IFNULL(expr, null_result)
If expr evaluates to NULL, returns null_result. Otherwise, returns expr. If expr doesn't evaluate to NULL, null_result isn't evaluated.
https://cloud.google.com/bigquery/docs/reference/standard-sql/conditional_expressions#ifnull
example:
ifnull(null, 5) -> returns 5
ifnull(1,2) -> returns 1