From 0a151e036e6fd2d075e66b4fe1879b9134567003 Mon Sep 17 00:00:00 2001 From: Richard Tia Date: Wed, 24 Aug 2022 14:53:36 -0400 Subject: [PATCH] feat: add coalesce function --- extensions/functions_comparison.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/extensions/functions_comparison.yaml b/extensions/functions_comparison.yaml index 439dfc25d..93392407c 100644 --- a/extensions/functions_comparison.yaml +++ b/extensions/functions_comparison.yaml @@ -133,4 +133,16 @@ scalar_functions: - value: any1 - value: any1 return: any1 + - + name: "coalesce" + description: >- + Evaluate arguments from left to right and return the first argument that is not null. Once + a non-null argument is found, the remaining arguments are not evaluated. + If all arguments are null, return null. + impls: + - args: + - value: any1 + variadic: + min: 2 + return: any1