This is an automated email from the ASF dual-hosted git repository. rongr pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push: new f57d92275a [multistage] add file filter to RBQT [MINOR] (#10003) f57d92275a is described below commit f57d92275ade628cea515060a3cdb5852c68a5ac Author: Almog Gavra <almog.ga...@gmail.com> AuthorDate: Mon Dec 19 12:03:08 2022 -0800 [multistage] add file filter to RBQT [MINOR] (#10003) --- .../pinot/query/runtime/queries/ResourceBasedQueriesTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/queries/ResourceBasedQueriesTest.java b/pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/queries/ResourceBasedQueriesTest.java index a5419afd80..b0a09f3f71 100644 --- a/pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/queries/ResourceBasedQueriesTest.java +++ b/pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/queries/ResourceBasedQueriesTest.java @@ -63,6 +63,7 @@ public class ResourceBasedQueriesTest extends QueryRunnerTestBase { private static final Pattern TABLE_NAME_REPLACE_PATTERN = Pattern.compile("\\{([\\w\\d]+)\\}"); private static final String QUERY_TEST_RESOURCE_FOLDER = "queries"; private static final Random RANDOM = new Random(42); + private static final String FILE_FILTER_PROPERTY = "pinot.fileFilter"; @BeforeClass public void setUp() @@ -304,8 +305,16 @@ public class ResourceBasedQueriesTest extends QueryRunnerTestBase { testFilenames.add(resource); } } + + // get filter if set + String property = System.getProperty(FILE_FILTER_PROPERTY); + // Load each test file. for (String testCaseName : testFilenames) { + if (property != null && !testCaseName.toLowerCase().contains(property.toLowerCase())) { + continue; + } + String testCaseFile = QUERY_TEST_RESOURCE_FOLDER + File.separator + testCaseName; URL testFileUrl = classLoader.getResource(testCaseFile); // This test only supports local resource loading (e.g. must be a file), not support JAR test loading. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org