Skip to content

Commit

Permalink
Add function registry for RPAD string function without pad text
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroantunes committed May 3, 2021
1 parent c270fb1 commit dc72148
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/src/gandiva/function_registry_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ std::vector<NativeFunction> 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),
Expand Down

0 comments on commit dc72148

Please sign in to comment.