Skip to content

Commit

Permalink
add integration test for issue opendistro-for-elasticsearch#867
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupal Mahajan committed Dec 8, 2020
1 parent 0eebbf9 commit 103862a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ public void testDateAdd() throws IOException {
verifySchema(result,
schema("date_add('2020-09-16', interval 1 day)", null, "datetime"));
verifyDataRows(result, rows("2020-09-17"));

result =
executeQuery(String.format("SELECT DATE_ADD(birthdate, INTERVAL 1 YEAR) FROM %s GROUP BY 1",TEST_INDEX_BANK) );
verifySchema(result,
schema("DATE_ADD(birthdate, INTERVAL 1 YEAR)", null, "datetime"));
verifyDataRows(result,
rows("2018-10-23 00:00:00"),
rows("2018-11-20 00:00:00"),
rows("2019-06-23 00:00:00"),
rows("2019-11-13 23:33:20"),
rows("2019-06-27 00:00:00"),
rows("2019-08-19 00:00:00"),
rows("2019-08-11 00:00:00"));
}

@Test
Expand Down

0 comments on commit 103862a

Please sign in to comment.