@@ -159,9 +159,10 @@ public void testSimpleDecimalArithmetic() throws Exception {
159159
160160 // NOTE: Calcite 1.38 changed DECIMAL arithmetic behavior affecting scale in results.
161161 // Multiplication results now include decimal scale in string representation.
162+ // Values calculated: row2: 11.1*11.1=123.21, row5: 987654321.1*123.1=121580246927.41
162163 String addOutput [] = {"123456888.0" , "22.2" , "0.2" , "-0.2" , "-987654444.2" ,"-3.0" };
163164 String subtractOutput [] = {"123456690.0" , "0.0" , "0.0" , "0.0" , "-987654198.0" , "-1.0" };
164- String multiplyOutput [] = {"12222222111.00" , "123.21" , "0.01" , "0.01" , "121580246926.01 " , "2.03" };
165+ String multiplyOutput [] = {"12222222111.00" , "123.21" , "0.01" , "0.01" , "121580246927.41 " , "2.03" };
165166
166167 Iterator <VectorWrapper <?>> itr = batchLoader .iterator ();
167168
@@ -213,7 +214,7 @@ public void testComplexDecimal() throws Exception {
213214 // NOTE: Calcite 1.38 changed DECIMAL arithmetic behavior affecting precision and scale in results.
214215 // Results may now include more decimal places in string representation.
215216 String addOutput [] = {"-99999998877.700000000" , "11.423456789" , "123456789.100000000" , "-0.119998000" , "100000000112.423456789" , "-99999999879.907000000" , "123456789123456801.300000000" };
216- String subtractOutput [] = {"-100000001124.300000000" , "10.823456789" , "-123456788.899999999 " , "-0.120002000" , "99999999889.823456789" , "-100000000122.093000000" , "123456789123456776.700000000" };
217+ String subtractOutput [] = {"-100000001124.300000000" , "10.823456789" , "-123456788.900000000 " , "-0.120002000" , "99999999889.823456789" , "-100000000122.093000000" , "123456789123456776.700000000" };
217218
218219 Iterator <VectorWrapper <?>> itr = batchLoader .iterator ();
219220
0 commit comments