Impala Date Function Support

TDV supports the date functions listed in the table below for Impala.

Impala Date Function

Notes

CURRENT_DATE

 

CURRENT_TIME

 

CURRENT_TIMESTAMP

 

DATE_ADD

 

DATE_SUB

 

DATEDIFF

 

DAY

 

EXTRACT

TDV and Impala have different logic when extracting second from timestamp. TDV includes second+millisecond. Impala does not include millisecond information.

FROM_UNIXTIME

 

MINUTE

 

MONTH

 

NOW

 

SECOND

 

TIMEOFDAY

 

TO_DATE

 

TO_TIMESTAMP

 

UNIX_TIMESTAMP

 

YEAR