You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2018/01/24 07:03:24 UTC
[4/9] impala git commit: [DOCS] IMPALA-6105 unix_timestamp returns a
number of seconds
[DOCS] IMPALA-6105 unix_timestamp returns a number of seconds
Added a note that the unix_timestamp function returns a number of
seconds.
Change-Id: Ie502322368c0052d4767191cf8f7ecb7ac5e7a16
Reviewed-on: http://gerrit.cloudera.org:8080/9084
Reviewed-by: John Russell <jr...@cloudera.com>
Reviewed-by: Tim Armstrong <ta...@cloudera.com>
Tested-by: Impala Public Jenkins
Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/f68aa87e
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/f68aa87e
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/f68aa87e
Branch: refs/heads/master
Commit: f68aa87efde6f2535a5726348475431081004547
Parents: 1890230
Author: Alex Rodoni <ar...@cloudera.com>
Authored: Fri Jan 19 15:20:57 2018 -0800
Committer: Impala Public Jenkins <im...@gerrit.cloudera.org>
Committed: Tue Jan 23 22:26:32 2018 +0000
----------------------------------------------------------------------
docs/topics/impala_datetime_functions.xml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/impala/blob/f68aa87e/docs/topics/impala_datetime_functions.xml
----------------------------------------------------------------------
diff --git a/docs/topics/impala_datetime_functions.xml b/docs/topics/impala_datetime_functions.xml
index f4d062a..d9c77dc 100644
--- a/docs/topics/impala_datetime_functions.xml
+++ b/docs/topics/impala_datetime_functions.xml
@@ -2526,9 +2526,12 @@ select now() + interval 2 weeks as 2_weeks_from_now,
<dd>
<indexterm audience="hidden">unix_timestamp() function</indexterm>
- <b>Purpose:</b> Returns an integer value representing the current date and time as a delta from the Unix
- epoch, or converts from a specified date and time value represented as a <codeph>TIMESTAMP</codeph> or
- <codeph>STRING</codeph>.
+ <b>Purpose:</b> Returns a Unix time, which is a number of seconds
+ elapsed since '1970-01-01 00:00:00' UTC. If called with no
+ argument, the current date and time is converted to its Unix time. If
+ called with arguments, the first argument represented as the
+ <codeph>TIMESTAMP</codeph> or <codeph>STRING</codeph> is converted to
+ its Unix time.
<p>
<b>Return type:</b> <codeph rev="2.2.0">bigint</codeph>
</p>