File tree Expand file tree Collapse file tree
integ-test/src/test/java/org/opensearch/sql/calcite/clickbench Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import org .junit .Test ;
1515import org .junit .runners .MethodSorters ;
1616import org .opensearch .common .collect .MapBuilder ;
17+ import org .opensearch .sql .opensearch .monitor .GCedMemoryUsage ;
1718import org .opensearch .sql .ppl .PPLIntegTestCase ;
1819
1920@ FixMethodOrder (MethodSorters .JVM )
@@ -49,11 +50,16 @@ public static void reset() throws IOException {
4950 }
5051
5152 /**
52- * Ignore queries that are not supported by Calcite. Ignore q30 because of too much script push
53- * down, which will cause ResourceMonitor restriction.
53+ * Ignore queries that are not supported by Calcite.
5454 */
5555 protected Set <Integer > ignored () {
56- return Set .of (29 );
56+ if (GCedMemoryUsage .initialized ()) {
57+ return Set .of (29 );
58+ } else {
59+ // Ignore q30 when use RuntimeMemoryUsage,
60+ // because of too much script push down, which will cause ResourceMonitor restriction.
61+ return Set .of (29 , 30 );
62+ }
5763 }
5864
5965 @ Test
You can’t perform that action at this time.
0 commit comments