Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 2.3.0
-
None
Description
Add function for unix_timestamp with date format yyyyDDD
This works good from hive beeline shell
Select unix_timestamp('2000123', 'yyyyDDD') as julian_unix
, from_unixtime(unix_timestamp('2000123', 'yyyyDDD')) as julian_date
, unix_timestamp('20000502', 'yyMMDD') as yymmdd_unix
, from_unixtime(unix_timestamp('20000502', 'yyMMDD')) as yymmdd_date
But does not from impala-shell, throwing message -
WARNINGS: Bad date/time conversion format: yyyyDDD
Require the Hive functionality in Impala to deal with Julian dates.
Attachments
Issue Links
- relates to
-
IMPALA-4018 Add support for SQL:2016 datetime templates/patterns/masks to CAST(... AS ... FORMAT <template>)
- Closed