FrankChen021 commented on code in PR #20633:
URL: https://github.com/apache/druid/pull/20633#discussion_r4324925074
##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByQueryRunnerFailureTest.java:
##########
@@ -340,6 +342,53 @@
Assertions.assertEquals("Query [test] timed out", ex.getMessage());
}
+ @Test
+ @org.junit.jupiter.api.Timeout(value = 60_000L, unit =
java.util.concurrent.TimeUnit.MILLISECONDS)
+ public void testInvalidInputExceptionOnQueryable_multiThreaded()
+ {
+ final GroupByQuery query = GroupByQuery
+ .builder()
+ .setDataSource(QueryRunnerTestHelper.DATA_SOURCE)
+ .setQuerySegmentSpec(QueryRunnerTestHelper.FIRST_TO_THIRD)
+ .setDimensions(new DefaultDimensionSpec("quality", "alias"))
+ .setAggregatorSpecs(new LongSumAggregatorFactory("rows", "rows"))
+ .setGranularity(Granularities.ALL)
+ .queryId("test-invalid-input")
+ .build();
+
+ GroupByQueryRunnerFactory factory = makeQueryRunnerFactory(
+ GroupByQueryRunnerTest.DEFAULT_MAPPER,
+ new GroupByQueryConfig()
+ {
+ @Override
+ public boolean isSingleThreaded()
+ {
+ return false;
+ }
+ }
+ );
+
+ DruidException expected = InvalidInput.exception(
+ "Projection[p] specified, but does not satisfy query"
+ );
+
+ QueryRunner<ResultRow> failingRunner = (queryPlus, responseContext) -> {
+ throw expected;
+ };
+
+ QueryRunner<ResultRow> mergeRunners = factory.mergeRunners(
+ Execs.directExecutor(),
+ List.of(runner, failingRunner)
+ );
Review Comment:
please resolve this warning
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]