From dc72148d6d96e9798efdda3374ca242390007976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro?= Date: Sun, 25 Apr 2021 11:03:29 -0300 Subject: [PATCH] Add function registry for RPAD string function without pad text --- cpp/src/gandiva/function_registry_string.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/src/gandiva/function_registry_string.cc b/cpp/src/gandiva/function_registry_string.cc index 7fad215445777..3fd75f4f3b8df 100644 --- a/cpp/src/gandiva/function_registry_string.cc +++ b/cpp/src/gandiva/function_registry_string.cc @@ -140,6 +140,12 @@ std::vector GetStringFunctionRegistry() { NativeFunction("lpad", {}, DataTypeVector{utf8(), int32()}, utf8(), kResultNullIfNull, "lpad_no_fill_text", NativeFunction::kNeedsContext), + NativeFunction("rpad", {}, DataTypeVector{utf8(), int32(), utf8()}, utf8(), + kResultNullIfNull, "rpad", NativeFunction::kNeedsContext), + + NativeFunction("rpad", {}, DataTypeVector{utf8(), int32()}, utf8(), + kResultNullIfNull, "rpad_no_fill_text", NativeFunction::kNeedsContext), + NativeFunction("concatOperator", {}, DataTypeVector{utf8(), utf8()}, utf8(), kResultNullIfNull, "concatOperator_utf8_utf8", NativeFunction::kNeedsContext),