Skip to content

Commit b97a1b5

Browse files
committed
Fix explain IT without pushdown
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent 32f18c4 commit b97a1b5

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLExplainIT.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)