From 6f603d3b61ad26a2f7da1bc74e2a60dd246def16 Mon Sep 17 00:00:00 2001 From: Vibhatha Lakmal Abeykoon Date: Mon, 19 Sep 2022 18:50:59 +0530 Subject: [PATCH] feat: add any_value aggregate function (#321) --- extensions/functions_aggregate_generic.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extensions/functions_aggregate_generic.yaml b/extensions/functions_aggregate_generic.yaml index 78e5f527d..df962d01b 100644 --- a/extensions/functions_aggregate_generic.yaml +++ b/extensions/functions_aggregate_generic.yaml @@ -25,3 +25,14 @@ aggregate_functions: decomposable: MANY intermediate: i64 return: i64 + - name: "any_value" + description: > + Selects an arbitrary value from a group of values. + + If the input is empty, the function returns null. + impls: + - args: + - name: x + value: any + nullability: DECLARED_OUTPUT + return: any?