Skip to content

Commit f17dc66

Browse files
committed
fix IT name
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 08bbb45 commit f17dc66

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/standalone/CalcitePPLAggregationIT.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@ public void testCountDistinctApprox() {
518518
JSONObject actual =
519519
executeQuery(
520520
String.format(
521-
"source=%s | stats distinct_count_approx(state) as dca by gender",
522-
TEST_INDEX_BANK));
523-
verifySchema(actual, schema("gender", "string"), schema("dca", "long"));
521+
"source=%s | stats distinct_count_approx(state) by gender", TEST_INDEX_BANK));
522+
verifySchema(
523+
actual, schema("gender", "string"), schema("distinct_count_approx(state)", "long"));
524524
verifyDataRows(actual, rows(3, "F"), rows(4, "M"));
525525
}
526526

@@ -529,9 +529,9 @@ public void testCountDistinctApproxWithAlias() {
529529
JSONObject actual =
530530
executeQuery(
531531
String.format(
532-
"source=%s | stats distinct_count_approx(state) by gender", TEST_INDEX_BANK));
533-
verifySchema(
534-
actual, schema("gender", "string"), schema("distinct_count_approx(state)", "long"));
532+
"source=%s | stats distinct_count_approx(state) as dca by gender",
533+
TEST_INDEX_BANK));
534+
verifySchema(actual, schema("gender", "string"), schema("dca", "long"));
535535
verifyDataRows(actual, rows(3, "F"), rows(4, "M"));
536536
}
537537

0 commit comments

Comments
 (0)