From 83ea3531b364a45a5b476bb2ab0aaf6ed14dd440 Mon Sep 17 00:00:00 2001 From: Vladimir Gapeyev <9939945+vgapeyev@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:10:46 +0000 Subject: [PATCH] sdf make-functions ./assets/trino ./src trino Updated version of make-functions, adjusting for the disappearance of DataFusion's `signature::TypeSignature::VariadicEqual`. --- src/trino/coalesce_impl.rs | 2 +- src/trino/concat_impl.rs | 6 +++--- src/trino/concat_ws_impl.rs | 2 +- src/trino/greatest_impl.rs | 2 +- src/trino/least_impl.rs | 2 +- src/trino/map_concat_impl.rs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/trino/coalesce_impl.rs b/src/trino/coalesce_impl.rs index 1327c78..f180839 100644 --- a/src/trino/coalesce_impl.rs +++ b/src/trino/coalesce_impl.rs @@ -55,7 +55,7 @@ pub(super) struct coalesce_1Func { impl coalesce_1Func { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } diff --git a/src/trino/concat_impl.rs b/src/trino/concat_impl.rs index d9900de..ac7c11c 100644 --- a/src/trino/concat_impl.rs +++ b/src/trino/concat_impl.rs @@ -211,7 +211,7 @@ pub(super) struct concat_array_3Func { impl concat_array_3Func { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } @@ -325,7 +325,7 @@ pub(super) struct concat_varcharFunc { impl concat_varcharFunc { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } @@ -363,7 +363,7 @@ pub(super) struct concat_varbinaryFunc { impl concat_varbinaryFunc { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } diff --git a/src/trino/concat_ws_impl.rs b/src/trino/concat_ws_impl.rs index 579f984..8d18278 100644 --- a/src/trino/concat_ws_impl.rs +++ b/src/trino/concat_ws_impl.rs @@ -119,7 +119,7 @@ pub(super) struct concat_ws_varcharFunc { impl concat_ws_varcharFunc { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } diff --git a/src/trino/greatest_impl.rs b/src/trino/greatest_impl.rs index c9cbd7e..a46562f 100644 --- a/src/trino/greatest_impl.rs +++ b/src/trino/greatest_impl.rs @@ -62,7 +62,7 @@ pub(super) struct greatest_3Func { impl greatest_3Func { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } diff --git a/src/trino/least_impl.rs b/src/trino/least_impl.rs index 04576f4..bab0d16 100644 --- a/src/trino/least_impl.rs +++ b/src/trino/least_impl.rs @@ -62,7 +62,7 @@ pub(super) struct least_3Func { impl least_3Func { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } } diff --git a/src/trino/map_concat_impl.rs b/src/trino/map_concat_impl.rs index f35b65b..cf01c01 100644 --- a/src/trino/map_concat_impl.rs +++ b/src/trino/map_concat_impl.rs @@ -58,7 +58,7 @@ pub(super) struct map_concat_map_4_5Func { impl map_concat_map_4_5Func { pub fn new() -> Self { Self { - signature: Signature::variadic_equal(Volatility::Immutable), + signature: Signature::variadic_any(Volatility::Immutable), } } }