You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ar...@apache.org on 2018/04/26 00:44:23 UTC

impala git commit: IMPALA-6529: [DOCS] Output type of round function matches the input type

Repository: impala
Updated Branches:
  refs/heads/master 65bcb1608 -> 770ef77d5


IMPALA-6529: [DOCS] Output type of round function matches the input type

Output types of the following functions now match the input types:
- round
- ceil
- floor
- trunc

Cherry-picks: Cherry-picks: not for 2.x

Change-Id: I5c80de2384e606bd59723e40c1c97efc32f1cbac
Reviewed-on: http://gerrit.cloudera.org:8080/10214
Reviewed-by: Greg Rahn <gr...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


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

Branch: refs/heads/master
Commit: 770ef77d532046ca2b3379a6ea7f1c30087e6940
Parents: 65bcb16
Author: Alex Rodoni <ar...@cloudera.com>
Authored: Wed Apr 25 16:55:56 2018 -0700
Committer: Impala Public Jenkins <im...@cloudera.com>
Committed: Thu Apr 26 00:40:18 2018 +0000

----------------------------------------------------------------------
 docs/topics/impala_math_functions.xml | 27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/770ef77d/docs/topics/impala_math_functions.xml
----------------------------------------------------------------------
diff --git a/docs/topics/impala_math_functions.xml b/docs/topics/impala_math_functions.xml
index 6bf0921..78147c8 100644
--- a/docs/topics/impala_math_functions.xml
+++ b/docs/topics/impala_math_functions.xml
@@ -186,8 +186,7 @@ under the License.
           <indexterm audience="hidden">ceil() function</indexterm>
           <b>Purpose:</b> Returns the smallest integer that is greater than or equal to the argument.
           <p>
-            <b>Return type:</b> <codeph>int</codeph> or <codeph>decimal(p,s)</codeph> depending on the type of the
-            input argument
+            <b>Return type:</b> Same as the input value
           </p>
         </dd>
 
@@ -380,8 +379,7 @@ select factorial(-100);
           <indexterm audience="hidden">floor() function</indexterm>
           <b>Purpose:</b> Returns the largest integer that is less than or equal to the argument.
           <p>
-            <b>Return type:</b> <codeph>bigint</codeph> or <codeph>decimal(p,s)</codeph> depending on the type of
-            the input argument
+            <b>Return type:</b> Same as the input type
           </p>
         </dd>
 
@@ -1255,17 +1253,15 @@ select x, unix_timestamp(now()), rand(unix_timestamp(now()))
         <dd>
           <indexterm audience="hidden">round() function</indexterm>
           <indexterm audience="hidden">dround() function</indexterm>
-          <b>Purpose:</b> Rounds a floating-point value. By default (with a single argument), rounds to the nearest
-          integer. Values ending in .5 are rounded up for positive numbers, down for negative numbers (that is,
-          away from zero). The optional second argument specifies how many digits to leave after the decimal point;
-          values greater than zero produce a floating-point return value rounded to the requested number of digits
-          to the right of the decimal point.
+          <b>Purpose:</b> Rounds a floating-point value. By default (with a
+          single argument), rounds to the nearest integer. Values ending in .5
+          are rounded up for positive numbers, down for negative numbers (that
+          is, away from zero). The optional second argument specifies how many
+          digits to leave after the decimal point; values greater than zero
+          produce a floating-point return value rounded to the requested number
+          of digits to the right of the decimal point.
           <p rev="1.4.0">
-            <b>Return type:</b> <codeph>bigint</codeph> for single <codeph>double</codeph> argument.
-            <codeph>double</codeph> for two-argument signature when second argument greater than zero.
-            For <codeph>DECIMAL</codeph> values, the smallest
-            <codeph>DECIMAL(<varname>p</varname>,<varname>s</varname>)</codeph> type with appropriate precision and
-            scale.
+            <b>Return type:</b> Same as the input type
           </p>
         </dd>
 
@@ -1429,8 +1425,7 @@ select x, unix_timestamp(now()), rand(unix_timestamp(now()))
             same function.
           </p>
           <p>
-            <b>Return type:</b> <codeph>decimal</codeph> for <codeph>DECIMAL</codeph> arguments;
-            <codeph>bigint</codeph> for <codeph>DOUBLE</codeph> arguments
+            <b>Return type:</b> Same as the input type
           </p>
           <p>
             <b>Added in:</b> The <codeph>trunc()</codeph> alias was added in