Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix IT
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-chen committed Dec 15, 2020
1 parent 9be9000 commit 72d2a94
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,15 @@ public void orderByAliasDescTest() throws IOException {

@Test
public void orderByGroupFieldWithAlias() throws IOException {
Assume.assumeTrue(isNewQueryEngineEabled());

// ORDER BY field name
JSONObject response = executeJdbcRequest(String.format("SELECT gender as g, COUNT(*) as count "
+ "FROM %s GROUP BY gender ORDER BY gender", TEST_INDEX_ACCOUNT));

verifySchema(response,
schema("g", "g", "text"),
schema("count", "count", "integer"));
schema("gender", "g", "text"),
schema("COUNT(*)", "count", "integer"));
verifyDataRowsInOrder(response,
rows("f", 493),
rows("m", 507));
Expand All @@ -524,8 +526,8 @@ public void orderByGroupFieldWithAlias() throws IOException {
+ "FROM %s GROUP BY gender ORDER BY g", TEST_INDEX_ACCOUNT));

verifySchema(response,
schema("g", "g", "text"),
schema("count", "count", "integer"));
schema("gender", "g", "text"),
schema("COUNT(*)", "count", "integer"));
verifyDataRowsInOrder(response,
rows("f", 493),
rows("m", 507));
Expand Down

0 comments on commit 72d2a94

Please sign in to comment.