This is an automated email from the ASF dual-hosted git repository.

zhangbutao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new b38888de413 HIVE-28330: Fix a typo in the example output of UDFHex 
(#5296)(Kent Yao, reviewed by Butao Zhang)
b38888de413 is described below

commit b38888de4138dddae2b9f7f18422943fe529c2ac
Author: Kent Yao <[email protected]>
AuthorDate: Tue Jun 18 11:15:27 2024 +0800

    HIVE-28330: Fix a typo in the example output of UDFHex (#5296)(Kent Yao, 
reviewed by Butao Zhang)
---
 ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHex.java | 2 +-
 ql/src/test/results/clientpositive/llap/udf_hex.q.out | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHex.java 
b/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHex.java
index 033b8e2df7b..726967ccd83 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHex.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHex.java
@@ -39,7 +39,7 @@ import org.apache.hadoop.io.Text;
     + "If the argument is a number or binary, returns the hexadecimal 
representation.\n"
     + "Example:\n"
     + "  > SELECT _FUNC_(17) FROM src LIMIT 1;\n"
-    + "  'H1'\n"
+    + "  '11'\n"
     + "  > SELECT _FUNC_('Facebook') FROM src LIMIT 1;\n"
     + "  '46616365626F6F6B'")
 @VectorizedExpressions({FuncHex.class})
diff --git a/ql/src/test/results/clientpositive/llap/udf_hex.q.out 
b/ql/src/test/results/clientpositive/llap/udf_hex.q.out
index 9225085bc83..7a505e5ee6a 100644
--- a/ql/src/test/results/clientpositive/llap/udf_hex.q.out
+++ b/ql/src/test/results/clientpositive/llap/udf_hex.q.out
@@ -12,7 +12,7 @@ If the argument is a string, returns two hex digits for each 
character in the st
 If the argument is a number or binary, returns the hexadecimal representation.
 Example:
   > SELECT hex(17) FROM src LIMIT 1;
-  'H1'
+  '11'
   > SELECT hex('Facebook') FROM src LIMIT 1;
   '46616365626F6F6B'
 Function class:org.apache.hadoop.hive.ql.udf.UDFHex

Reply via email to