commit 9cc459245d6401e537cbcd7fe9adf6e3aa302144 Author: Bharath Krishna Date: Wed Mar 14 12:39:54 2018 -0700 HIVE-18863 Corrected the typo : trunc() calls itself trunk() in an error message diff --git ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java index fa245e7847d6723a58e75c8dc137d403f83b7e6b..372db36f37a2f6bc551a20fd1632857f3bbbd6b3 100644 --- ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java +++ ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTrunc.java @@ -259,7 +259,7 @@ private ObjectInspector initializeDate(ObjectInspector[] arguments) && 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;