File tree Expand file tree Collapse file tree
integ-test/src/test/java/org/opensearch/sql/calcite/remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1483,14 +1483,20 @@ public void testExplainChartWithLimits() throws IOException {
14831483 explainQueryYaml (
14841484 String .format (
14851485 "source=%s | chart limit=0 avg(balance) over state by gender" , TEST_INDEX_BANK )));
1486+ }
14861487
1487- assertYamlEqualsIgnoreId (
1488- loadExpectedPlan ("chart_use_other.yaml" ),
1489- explainQueryYaml (
1490- String .format (
1491- "source=%s | chart limit=2 useother=true otherstr='max_among_other'"
1492- + " max(severityNumber) over flags by severityText" ,
1493- TEST_INDEX_OTEL_LOGS )));
1488+ @ Test
1489+ public void testExplainChartWithUseOther () throws IOException {
1490+ // In the non-pushdown version, there's a slightly different physical plan due to position difference
1491+ enabledOnlyWhenPushdownIsEnabled ();
1492+ // Mask all numbers because the location in the backport is different
1493+ assertYamlEqualsIgnoreId (
1494+ loadExpectedPlan ("chart_use_other.yaml" ).replaceAll ("(\\ d+|severityText|flags|severityNumber)" , "" ),
1495+ explainQueryYaml (
1496+ String .format (
1497+ "source=%s | chart limit=2 useother=true otherstr='max_among_other'"
1498+ + " max(severityNumber) over flags by severityText" ,
1499+ TEST_INDEX_OTEL_LOGS )).replaceAll ("(\\ d+|severityText|flags|severityNumber)" , "" ));
14941500 }
14951501
14961502 @ Test
You can’t perform that action at this time.
0 commit comments