github-advanced-security[bot] commented on code in PR #15420:
URL: https://github.com/apache/druid/pull/15420#discussion_r1409028426
##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownInsufficientBufferTest.java:
##########
@@ -469,19 +496,37 @@
// one segment's results use limit push down, the other doesn't because of
insufficient buffer capacity
QueryToolChest<ResultRow, GroupByQuery> toolChest =
groupByFactory.getToolchest();
- QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
- toolChest.mergeResults(
- groupByFactory.mergeRunners(executorService, getRunner1())
- ),
+ QueryRunner<ResultRow> theRunner = new
FinalizeResultsQueryRunner<ResultRow>(
+ (queryPlus, responseContext) -> {
+ return toolChest.mergeResults(
+ groupByFactory.mergeRunners(executorService, getRunner1())
+ ).run(
+ queryPlus.withQuery(
+ queryPlus.getQuery().withOverriddenContext(
+
ImmutableMap.of(GroupByUtils.CTX_KEY_RUNNER_MERGES_USING_GROUP_BY_MERGING_QUERY_RUNNER_V2,
true)
+ )
+ ),
+ responseContext
+ );
+ },
(QueryToolChest) toolChest
);
-
- QueryRunner<ResultRow> theRunner2 = new FinalizeResultsQueryRunner<>(
- toolChest.mergeResults(
- tooSmallGroupByFactory.mergeRunners(executorService, getRunner2())
- ),
- (QueryToolChest) toolChest
+ QueryToolChest<ResultRow, GroupByQuery> tooSmalltoolChest =
tooSmallGroupByFactory.getToolchest();
+ QueryRunner<ResultRow> theRunner2 = new
FinalizeResultsQueryRunner<ResultRow>(
+ (queryPlus, responseContext) -> {
+ return tooSmalltoolChest.mergeResults(
+ tooSmallGroupByFactory.mergeRunners(executorService,
getRunner2())
Review Comment:
## Deprecated method or constructor invocation
Invoking [QueryRunnerFactory.mergeRunners](1) should be avoided because it
has been deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/6016)
##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownInsufficientBufferTest.java:
##########
@@ -469,19 +496,37 @@
// one segment's results use limit push down, the other doesn't because of
insufficient buffer capacity
QueryToolChest<ResultRow, GroupByQuery> toolChest =
groupByFactory.getToolchest();
- QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
- toolChest.mergeResults(
- groupByFactory.mergeRunners(executorService, getRunner1())
- ),
+ QueryRunner<ResultRow> theRunner = new
FinalizeResultsQueryRunner<ResultRow>(
+ (queryPlus, responseContext) -> {
+ return toolChest.mergeResults(
+ groupByFactory.mergeRunners(executorService, getRunner1())
Review Comment:
## Deprecated method or constructor invocation
Invoking [QueryRunnerFactory.mergeRunners](1) should be avoided because it
has been deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/6015)
--
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]