You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Gabor Kaszab (JIRA)" <ji...@apache.org> on 2019/05/13 06:48:00 UTC
[jira] [Closed] (IMPALA-3381) Impala to support AM/PM format in
unix_timestamp and from_unixtime
[ https://issues.apache.org/jira/browse/IMPALA-3381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabor Kaszab closed IMPALA-3381.
--------------------------------
Resolution: Duplicate
Fix Version/s: Not Applicable
> 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: Gabor Kaszab
> Priority: Minor
> Labels: built-in-function
> Fix For: Not Applicable
>
>
> 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)