Repository: incubator-impala
Updated Branches:
  refs/heads/master a2281508f -> f2cb8199d


IMPALA-5348: [DOCS] Add CAST to string literal + INTERVAL example

The related JIRAs IMPALA-2293 and IMPALA-1503 are asking for the
code behavior to be changed to match the documentation. In the
meantime, changing the documentation to match the code.

I grepped the doc source for other instances of INTERVAL arithmetic
and this was the only one that used a string literal as the
starting point.

Change-Id: I3e2af386176e7c310ced221fa77d73c97a9f8590
Reviewed-on: http://gerrit.cloudera.org:8080/7067
Reviewed-by: Michael Brown <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/f2cb8199
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/f2cb8199
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/f2cb8199

Branch: refs/heads/master
Commit: f2cb8199ddc73833b493cc0304b9e48a6fd4658a
Parents: a228150
Author: John Russell <[email protected]>
Authored: Fri Jun 2 14:57:58 2017 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Mon Jun 5 20:10:18 2017 +0000

----------------------------------------------------------------------
 docs/topics/impala_literals.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/f2cb8199/docs/topics/impala_literals.xml
----------------------------------------------------------------------
diff --git a/docs/topics/impala_literals.xml b/docs/topics/impala_literals.xml
index 22404d9..bdfda25 100644
--- a/docs/topics/impala_literals.xml
+++ b/docs/topics/impala_literals.xml
@@ -299,7 +299,7 @@ select case bool_col when true then 'yes' when false 'no' 
else 'null' end from t
 
       <p>
         You can also use <codeph>INTERVAL</codeph> expressions to add or 
subtract from timestamp literal values,
-        such as <codeph>'1966-07-30' + INTERVAL 5 YEARS + INTERVAL 3 
DAYS</codeph>. See
+        such as <codeph>CAST('1966-07-30' AS TIMESTAMP) + INTERVAL 5 YEARS + 
INTERVAL 3 DAYS</codeph>. See
         <xref href="impala_timestamp.xml#timestamp"/> for details.
       </p>
 

Reply via email to