Skip to content

Commit

Permalink
Activate an IT
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Aug 21, 2023
1 parent d0529d0 commit 64bdbc0
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions integ-test/src/test/java/org/opensearch/sql/sql/TextTypeIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,33 +63,29 @@ public void test_all_data_returned_as_strings() {
}

@Test
// TODO uncomment test ascii on TextWithKeywords after
// https://github.com/opensearch-project/sql/pull/1895
public void test_ascii() {
// JSONObject result = executeQuery("select ascii(Keyword), ascii(TextWithKeywords),
// ascii(Text), ascii(TextWithFielddata), "
JSONObject result =
executeQuery(
"select ascii(Keyword), ascii(Text), ascii(TextWithFielddata), "
"select ascii(Keyword), ascii(TextWithKeywords), ascii(Text),ascii(TextWithFielddata),"
+ "ascii(TextWithFields), ascii(TextWithNumbers), ascii(TextWithMixedFields) FROM "
+ TEST_INDEX_TEXT);

verifySchema(
result,
schema("ascii(Keyword)", null, "integer"),
// schema("ascii(TextWithKeywords)", null, "integer"),
schema("ascii(TextWithKeywords)", null, "integer"),
schema("ascii(Text)", null, "integer"),
schema("ascii(TextWithFielddata)", null, "integer"),
schema("ascii(TextWithFields)", null, "integer"),
schema("ascii(TextWithNumbers)", null, "integer"),
schema("ascii(TextWithMixedFields)", null, "integer"));
verifyDataRows(
result,
rows(75, /*84,*/ null, 84, null, null, 111),
rows(null, /*null,*/ 84, 70, 70, 52, 52),
rows(105, /*65,*/ null, null, null, 52, 49),
rows(null, /*0,*/ 83, 84, 70, 49, null),
rows(107, /*null,*/ 65, null, 65, null, null));
rows(75, 84, null, 84, null, null, 111),
rows(null, null, 84, 70, 70, 52, 52),
rows(105, 65, null, null, null, 52, 49),
rows(null, 0, 83, 84, 70, 49, null),
rows(107, null, 65, null, 65, null, null));
}

@Test
Expand Down

0 comments on commit 64bdbc0

Please sign in to comment.