@@ -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