You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by jr...@apache.org on 2017/11/27 19:27:09 UTC

[2/2] incubator-impala git commit: [DOCS] Correct bit patterns in comments for shiftright() examples

[DOCS] Correct bit patterns in comments for shiftright() examples

Looks like I reused the same comment in 3 places with a RHS of
00000000, and filled in the right bit pattern on the LHS but
not the RHS. The actual code and output are correct.

Change-Id: I0d1bc00e4c8d1ae3352e18a8df95745d9c9b5ea6
Reviewed-on: http://gerrit.cloudera.org:8080/8624
Reviewed-by: Tim Armstrong <ta...@cloudera.com>
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/a86cc7a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/a86cc7a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/a86cc7a3

Branch: refs/heads/master
Commit: a86cc7a3ded43063fddffc161aea447f404f2d46
Parents: 017338f
Author: John Russell <jr...@cloudera.com>
Authored: Tue Nov 21 11:59:32 2017 -0800
Committer: Impala Public Jenkins <im...@gerrit.cloudera.org>
Committed: Mon Nov 27 19:21:12 2017 +0000

----------------------------------------------------------------------
 docs/topics/impala_bit_functions.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/a86cc7a3/docs/topics/impala_bit_functions.xml
----------------------------------------------------------------------
diff --git a/docs/topics/impala_bit_functions.xml b/docs/topics/impala_bit_functions.xml
index 24f8478..c42f834 100644
--- a/docs/topics/impala_bit_functions.xml
+++ b/docs/topics/impala_bit_functions.xml
@@ -768,14 +768,14 @@ select shiftleft(-1,4); /* 11111111 -> 11110000 */
           <p conref="../shared/impala_common.xml#common/return_type_same"/>
           <p conref="../shared/impala_common.xml#common/added_in_230"/>
           <p conref="../shared/impala_common.xml#common/example_blurb"/>
-<codeblock>select shiftright(16,0); /* 00010000 -> 00000000 */
+<codeblock>select shiftright(16,0); /* 00010000 -> 00010000 */
 +-------------------+
 | shiftright(16, 0) |
 +-------------------+
 | 16                |
 +-------------------+
 
-select shiftright(16,4); /* 00010000 -> 00000000 */
+select shiftright(16,4); /* 00010000 -> 00000001 */
 +-------------------+
 | shiftright(16, 4) |
 +-------------------+