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 @@ -59,10 +59,17 @@ public void testExplainCommandExtendedWithCodegen() throws IOException {
5959 public void testExplainCommandExtendedWithoutCodegen () throws IOException {
6060 var result =
6161 executeWithReplace ("explain extended source=test | where age = 20 | fields name, age" );
62- assertFalse (
63- result .contains (
64- "public org.apache.calcite.linq4j.Enumerable bind(final"
65- + " org.apache.calcite.DataContext root)" ));
62+ if (isPushdownEnabled ()) {
63+ assertFalse (
64+ result .contains (
65+ "public org.apache.calcite.linq4j.Enumerable bind(final"
66+ + " org.apache.calcite.DataContext root)" ));
67+ } else {
68+ assertTrue (
69+ result .contains (
70+ "public org.apache.calcite.linq4j.Enumerable bind(final"
71+ + " org.apache.calcite.DataContext root)" ));
72+ }
6673 }
6774
6875 @ Test
You can’t perform that action at this time.
0 commit comments