You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Bikramjeet Vig (JIRA)" <ji...@apache.org> on 2017/07/06 23:25:00 UTC
[jira] [Resolved] (IMPALA-3504) function for current timestamp in
UTC, i.e. utc_timestamp()
[ https://issues.apache.org/jira/browse/IMPALA-3504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bikramjeet Vig resolved IMPALA-3504.
------------------------------------
Resolution: Fixed
> function for current timestamp in UTC, i.e. utc_timestamp()
> -----------------------------------------------------------
>
> Key: IMPALA-3504
> URL: https://issues.apache.org/jira/browse/IMPALA-3504
> Project: IMPALA
> Issue Type: New Feature
> Components: Backend
> Affects Versions: Impala 2.5.0
> Reporter: kuduser
> Assignee: Bikramjeet Vig
> Priority: Minor
> Labels: built-in-function, ramp-up
>
> Impala badly needs a way to generate a UTC timestamp.
> Current there does not appear to be such a way.
> unix_timestamp() does not actually return a timestamp, but a epoch time as an integer.
> Trying to convert this to a timestamp using cast() or from_unixtime() fail because they both convert to Local time.
> This could be implemented either as a timezone argument to now() or from_unixtime(), so we can ask for a timestamp in UTC.
> Yes, there is a to_utc_timestamp() function, but that requires you to specify the timezone of the timestamp you are converting from.
> I just want something like current_utctimestamp().
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)