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:55:19 UTC
hive git commit: HIVE-18863 : trunc() calls itself trunk() in an
error message (Bharathkrishna Guruvayoor Murali,
reviewed by Vihang Karajgaonkar)
Repository: hive
Updated Branches:
refs/heads/master 51104e308 -> 3ea96eeb8
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/3ea96eeb
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/3ea96eeb
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/3ea96eeb
Branch: refs/heads/master
Commit: 3ea96eeb82ea1a6ad3cd492c285b33c606f85485
Parents: 51104e3
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:48:00 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/3ea96eeb/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 fa245e7..372db36 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;