Skip to content

Commit

Permalink
Change signature to use macros
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonylouisbsb committed Apr 12, 2021
1 parent 84f8ccb commit d7ae691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/src/gandiva/precompiled/time.cc
Expand Up @@ -751,7 +751,7 @@ gdv_date64 castDATE_timestamp(gdv_timestamp timestamp_in_millis) {
return tp.ClearTimeOfDay().MillisSinceEpoch();
}

int32_t castTIME_timestamp(int64_t timestamp_in_millis) {
gdv_time32 castTIME_timestamp(gdv_timestamp timestamp_in_millis) {
// Retrieves a timestamp and returns the number of milliseconds since the midnight
EpochTimePoint tp(timestamp_in_millis);
auto tp_at_midnight = tp.ClearTimeOfDay();
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/gandiva/precompiled/types.h
Expand Up @@ -251,7 +251,7 @@ gdv_timestamp castTIMESTAMP_utf8(int64_t execution_context, const char* input,
gdv_timestamp castTIMESTAMP_date64(gdv_date64);
gdv_timestamp castTIMESTAMP_int64(gdv_int64);
gdv_date64 castDATE_timestamp(gdv_timestamp);
int32_t castTIME_timestamp(int64_t timestamp_in_millis);
gdv_time32 castTIME_timestamp(gdv_timestamp timestamp_in_millis);
const char* castVARCHAR_timestamp_int64(int64_t, gdv_timestamp, gdv_int64, gdv_int32*);
gdv_date64 last_day_from_timestamp(gdv_date64 millis);

Expand Down

0 comments on commit d7ae691

Please sign in to comment.