Skip to content

Commit

Permalink
Add alias for nullable functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvictorhuguenin committed Jul 16, 2021
1 parent 813d9cc commit 6f1f87d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/src/gandiva/function_registry_datetime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,18 @@ std::vector<NativeFunction> GetDateTimeFunctionRegistry() {
NativeFunction("castNULLABLEBIGINT", {}, DataTypeVector{month_interval()}, int64(),
kResultNullIfNull, "castNULLABLEBIGINT_yearinterval"),

NativeFunction("castNULLABLEINTERVALYEAR", {}, DataTypeVector{int32()}, month_interval(),
NativeFunction("castNULLABLEINTERVALYEAR", {"castINTERVALYEAR"}, DataTypeVector{int32()}, month_interval(),
kResultNullIfNull, "castNULLABLEINTERVALYEAR_int32",
NativeFunction::kNeedsContext | NativeFunction::kCanReturnErrors),

NativeFunction("castNULLABLEINTERVALYEAR", {}, DataTypeVector{int64()}, month_interval(),
NativeFunction("castNULLABLEINTERVALYEAR", {"castINTERVALYEAR"}, DataTypeVector{int64()}, month_interval(),
kResultNullIfNull, "castNULLABLEINTERVALYEAR_int64",
NativeFunction::kNeedsContext | NativeFunction::kCanReturnErrors),

NativeFunction("castNULLABLEINTERVALDAY", {}, DataTypeVector{int32()}, day_time_interval(),
NativeFunction("castNULLABLEINTERVALDAY", {"castINTERVALDAY"}, DataTypeVector{int32()}, day_time_interval(),
kResultNullIfNull, "castNULLABLEINTERVALDAY_int32"),

NativeFunction("castNULLABLEINTERVALDAY", {}, DataTypeVector{int64()}, day_time_interval(),
NativeFunction("castNULLABLEINTERVALDAY", {"castINTERVALDAY"}, DataTypeVector{int64()}, day_time_interval(),
kResultNullIfNull, "castNULLABLEINTERVALDAY_int64"),

NativeFunction("extractDay", {}, DataTypeVector{day_time_interval()}, int64(),
Expand Down

0 comments on commit 6f1f87d

Please sign in to comment.