Skip to content

Commit e511e30

Browse files
Fix some tests.
Signed-off-by: Yury Fridlyand <[email protected]>
1 parent 89288c2 commit e511e30

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

core/src/test/java/org/opensearch/sql/expression/function/WideningTypeRuleTest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ class WideningTypeRuleTest {
6161
.put(STRING, DATE, 1)
6262
.put(STRING, TIME, 1)
6363
.put(STRING, DATETIME, 1)
64+
.put(STRING, INTEGER, 2)
65+
.put(STRING, LONG, 3)
66+
.put(STRING, FLOAT, 4)
67+
.put(STRING, DOUBLE, 2)
68+
69+
.put(DATE, INTEGER, 1)
70+
.put(DATE, LONG, 2)
71+
.put(DATE, FLOAT, 3)
72+
.put(DATE, DOUBLE, 4)
73+
74+
.put(DATETIME, DOUBLE, 1)
75+
.put(TIME, DOUBLE, 1)
76+
6477
.put(UNDEFINED, BYTE, 1)
6578
.put(UNDEFINED, SHORT, 2)
6679
.put(UNDEFINED, INTEGER, 3)

integ-test/src/test/java/org/opensearch/sql/sql/ConditionalIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void ifnullWithNullInputTest() {
6262
verifySchema(response,
6363
schema("IFNULL(null, firstname)", "IFNULL1", "keyword"),
6464
schema("IFNULL(firstname, null)", "IFNULL2", "keyword"),
65-
schema("IFNULL(null, null)", "IFNULL3", "byte"));
65+
schema("IFNULL(null, null)", "IFNULL3", "keyword"));
6666
verifyDataRows(response,
6767
rows("Hattie", "Hattie", LITERAL_NULL.value()),
6868
rows( "Elinor", "Elinor", LITERAL_NULL.value())

0 commit comments

Comments
 (0)