Skip to content

Commit 17f4ac0

Browse files
committed
add IT
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent b26eb24 commit 17f4ac0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/ppl/StatsCommandIT.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,19 @@ public void testStatsPercentile() throws IOException {
608608
verifyDataRows(response, rows(32838));
609609
}
610610

611+
@Test
612+
public void testStatsPercentileWithMin() throws IOException {
613+
JSONObject response =
614+
executeQuery(
615+
String.format(
616+
"source=%s | stats percentile(balance, 50), min(balance)", TEST_INDEX_BANK));
617+
verifySchema(
618+
response,
619+
schema("percentile(balance, 50)", null, "bigint"),
620+
schema("min(balance)", null, "bigint"));
621+
verifyDataRows(response, rows(32838, 4180));
622+
}
623+
611624
@Test
612625
public void testStatsPercentileWithNull() throws IOException {
613626
JSONObject response =

0 commit comments

Comments
 (0)