Skip to content

Commit a706a48

Browse files
committed
Fix tests
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent 83040d8 commit a706a48

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

core/src/test/java/org/opensearch/sql/data/model/ExprValueUtilsTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,8 @@ public void unSupportedObject() {
218218
Exception exception =
219219
assertThrows(
220220
ExpressionEvaluationException.class,
221-
() -> ExprValueUtils.fromObjectValue(integerValue(1)));
222-
assertEquals(
223-
"unsupported object " + "class org.opensearch.sql.data.model.ExprIntegerValue",
224-
exception.getMessage());
221+
() -> ExprValueUtils.fromObjectValue(new Object()));
222+
assertEquals("unsupported object class java.lang.Object", exception.getMessage());
225223
}
226224

227225
@Test

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLBasicIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ public void testNumericLiteral() throws IOException {
600600
schema("floatLiteral", "float"));
601601
verifyDataRows(
602602
result,
603-
rows("hello", 20, 0.05, 0.049999999999999996, 0.05),
604-
rows("world", 30, 0.05, 0.049999999999999996, 0.05));
603+
rows("hello", 20, 0.05, 0.049999999999999996, 0.049999999999999996),
604+
rows("world", 30, 0.05, 0.049999999999999996, 0.049999999999999996));
605605
}
606606

607607
@Test

0 commit comments

Comments
 (0)