Skip to content

Commit

Permalink
Add native function for castTIME
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonylouisbsb committed Apr 12, 2021
1 parent 75b9652 commit 84f8ccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/gandiva/function_registry_datetime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ std::vector<NativeFunction> GetDateTimeFunctionRegistry() {
NativeFunction("castDATE", {"to_date"}, DataTypeVector{timestamp()}, date64(),
kResultNullIfNull, "castDATE_timestamp"),

NativeFunction("castTIME", {}, DataTypeVector{timestamp()}, time32(),
kResultNullIfNull, "castTIME_timestamp"),

NativeFunction("castBIGINT", {}, DataTypeVector{day_time_interval()}, int64(),
kResultNullIfNull, "castBIGINT_daytimeinterval"),

Expand Down

0 comments on commit 84f8ccb

Please sign in to comment.