11/**
2- * Copyright 2019-2022 LinkedIn Corporation. All rights reserved.
2+ * Copyright 2019-2026 LinkedIn Corporation. All rights reserved.
33 * Licensed under the BSD-2 Clause license.
44 * See LICENSE in the project root for license information.
55 */
@@ -87,7 +87,7 @@ public static void testPigLog2UDF() throws IOException, ParseException {
8787 { "view = LOAD 'src/test/resources/data/functions/tablefields.json' USING JsonLoader('"
8888 + "i_1:int, i0:int, i1:int, i2:int, i3:int, fl1:double, fl2:double, fl3:double, "
8989 + "str:chararray, substr:chararray, exstr:chararray, bootrue:boolean, boofalse:boolean, bin:bytearray');" , "view = FOREACH view GENERATE LOG(i3)/LOG(2) AS EXPRx0;" };
90- final String [] expectedOutput = { "(1.5849625007211563 )" };
90+ final String [] expectedOutput = { "(1.584962500721156 )" };
9191
9292 final String [] translatedPigLatin = TestUtils .sqlToPigLatin (sql , OUTPUT_RELATION );
9393
@@ -107,7 +107,7 @@ public static void testPigLogUDF() throws IOException, ParseException {
107107 { "view = LOAD 'src/test/resources/data/functions/tablefields.json' USING JsonLoader('"
108108 + "i_1:int, i0:int, i1:int, i2:int, i3:int, fl1:double, fl2:double, fl3:double, "
109109 + "str:chararray, substr:chararray, exstr:chararray, bootrue:boolean, boofalse:boolean, bin:bytearray');" , "view = FOREACH view GENERATE LOG(i3)/LOG(i2) AS EXPRx0;" };
110- final String [] expectedOutput = { "(1.5849625007211563 )" };
110+ final String [] expectedOutput = { "(1.584962500721156 )" };
111111
112112 final String [] translatedPigLatin = TestUtils .sqlToPigLatin (sql , OUTPUT_RELATION );
113113
@@ -209,11 +209,11 @@ public static void testAllPigBuiltinFunctions() throws IOException, ParseExcepti
209209 "ceiling" , "CEIL" , "fl2" ,
210210 "(2.0)" ), PigFunctionTest .create ("ceiling" , "CEIL" , "fl3" , "(2.0)" ), PigFunctionTest
211211 .create ("cos" , "COS" , "i1" , "(0.5403023058681398)" ), PigFunctionTest .create ("exp" ,
212- "EXP" , "fl1" , "(2.718281828459045 )" ), PigFunctionTest .create ("floor" , "FLOOR" ,
212+ "EXP" , "fl1" , "(2.7182818284590455 )" ), PigFunctionTest .create ("floor" , "FLOOR" ,
213213 "fl1" , "(1.0)" ), PigFunctionTest .create ("floor" , "FLOOR" , "fl2" ,
214214 "(1.0)" ), PigFunctionTest .create ("floor" , "FLOOR" , "fl3" ,
215215 "(1.0)" ), PigFunctionTest .create ("log10" , "LOG10" , "fl3" ,
216- "(0.24303804868629444 )" ), PigFunctionTest .create ("lower" , "LOWER" ,
216+ "(0.24303804868629442 )" ), PigFunctionTest .create ("lower" , "LOWER" ,
217217 "str" , "(abcd)" ), PigFunctionTest .create ("ln" , "LOG" , "fl3" ,
218218 "(0.5596157879354227)" ), PigFunctionTest .create (
219219 "regexp_extract" , "REGEX_EXTRACT" ,
@@ -260,7 +260,7 @@ public static void testAllPigUDF() throws IOException, ParseException {
260260 .create ("power" , "i2, i2" , "(4.0)" ), PigFunctionTest .create ("power" ,
261261 "fl2, fl2" ,
262262 "(1.3056984531291909)" ), PigFunctionTest .create ("radians" , "i3" ,
263- "(0.05235987755982988 )" ), PigFunctionTest .create (
263+ "(0.05235987755982989 )" ), PigFunctionTest .create (
264264 "regexp_replace" , "str, substr, exstr" ,
265265 "(aBeFg )" ), PigFunctionTest .create ("split" , "str, 'c'" ,
266266 "({(aB),(D)})" ), PigFunctionTest .create ("unbase64" ,
0 commit comments