[
https://issues.apache.org/jira/browse/IMPALA-3381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16835815#comment-16835815
]
Greg Rahn commented on IMPALA-3381:
-----------------------------------
I'm good with supporting this use case in the SQL:2016 stuff (IMPALA-4018) and
recommending it's use vs trying to add the functionality to the legacy methods.
> Impala to support AM/PM format in unix_timestamp and from_unixtime
> ------------------------------------------------------------------
>
> Key: IMPALA-3381
> URL: https://issues.apache.org/jira/browse/IMPALA-3381
> Project: IMPALA
> Issue Type: New Feature
> Components: Backend
> Affects Versions: Impala 2.5.0
> Reporter: Yibing Shi
> Assignee: Attila Jeges
> Priority: Minor
> Labels: built-in-function
>
> Need a way to support below format in {{unix_timestamp}}, and
> {{from_unixtime}} if possible:
> {noformat}
> 20151214 05:15:00.1234 AM
> 20151214 05:15:00.1234 PM
> {noformat}
> An example:
> {noformat}
> unix_timestamp('20151214 05:15:00.1234 PM', 'yyyyMMdd HH:mm:ss.SSS PP')
> {noformat}
> Of course we can choose a different format, only if we can interpret the
> AM/PM part of a date time string.
> *The function need to support up to nanosecond*
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]