You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vi...@apache.org on 2018/03/23 23:56:06 UTC

[2/2] hive git commit: HIVE-18863 : trunc() calls itself trunk() in an error message (Bharathkrishna Guruvayoor Murali, reviewed by Vihang Karajgaonkar)

HIVE-18863 : trunc() calls itself trunk() in an error message (Bharathkrishna Guruvayoor Murali, reviewed by Vihang Karajgaonkar)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/32055ca4
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/32055ca4
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/32055ca4

Branch: refs/heads/branch-2
Commit: 32055ca4e7a98ae2efccdaf474e1aba2c41f3818
Parents: d32adf5
Author: Vihang Karajgaonkar <vi...@cloudera.com>
Authored: Fri Mar 23 16:48:00 2018 -0700
Committer: Vihang Karajgaonkar <vi...@cloudera.com>
Committed: Fri Mar 23 16:55:47 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/32055ca4/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java
index d8368eb..25ebb6f 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java
@@ -259,7 +259,7 @@ public class GenericUDFTrunc extends GenericUDF {
         && PrimitiveObjectInspectorUtils
             .getPrimitiveGrouping(inputType2) != PrimitiveGrouping.VOID_GROUP) {
       throw new UDFArgumentTypeException(1,
-          "trunk() only takes STRING/CHAR/VARCHAR types as second argument, got " + inputType2);
+          "trunc() only takes STRING/CHAR/VARCHAR types as second argument, got " + inputType2);
     }
 
     inputType2 = PrimitiveCategory.STRING;