github-advanced-security[bot] commented on code in PR #15420:
URL: https://github.com/apache/druid/pull/15420#discussion_r1406769405


##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownMultiNodeMergeTest.java:
##########
@@ -627,23 +626,26 @@
   @Test
   public void testDescendingNumerics()
   {
-    QueryToolChest<ResultRow, GroupByQuery> toolChest = 
groupByFactory.getToolchest();
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical = 
groupByFactoryHistorical.getToolchest();
     QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory.mergeRunners(executorService, getRunner1(2))
+        toolChestHistorical.mergeResults(
+            groupByFactoryHistorical.mergeRunners(executorService, 
getRunner1(2))

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/6006)



##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownMultiNodeMergeTest.java:
##########
@@ -905,23 +948,25 @@
 
   private List<ResultRow> 
testForcePushLimitDownAccuracyWhenSortHasNonGroupingFieldsHelper(Map<String, 
Object> context)
   {
-    QueryToolChest<ResultRow, GroupByQuery> toolChest = 
groupByFactory.getToolchest();
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical = 
groupByFactoryHistorical.getToolchest();
     QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory.mergeRunners(executorService, getRunner1(4))
+        toolChestHistorical.mergeResults(
+            groupByFactoryHistorical.mergeRunners(executorService, 
getRunner1(4))

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/6010)



##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownMultiNodeMergeTest.java:
##########
@@ -905,23 +948,25 @@
 
   private List<ResultRow> 
testForcePushLimitDownAccuracyWhenSortHasNonGroupingFieldsHelper(Map<String, 
Object> context)
   {
-    QueryToolChest<ResultRow, GroupByQuery> toolChest = 
groupByFactory.getToolchest();
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical = 
groupByFactoryHistorical.getToolchest();
     QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory.mergeRunners(executorService, getRunner1(4))
+        toolChestHistorical.mergeResults(
+            groupByFactoryHistorical.mergeRunners(executorService, 
getRunner1(4))
         ),
-        (QueryToolChest) toolChest
+        (QueryToolChest) toolChestHistorical
     );
 
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical2 = 
groupByFactoryHistorical2.getToolchest();
     QueryRunner<ResultRow> theRunner2 = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory2.mergeRunners(executorService, getRunner2(5))
+        toolChestHistorical2.mergeResults(
+            groupByFactoryHistorical2.mergeRunners(executorService, 
getRunner2(5))

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/6011)



##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownMultiNodeMergeTest.java:
##########
@@ -764,23 +785,26 @@
   {
     // one segment's results use limit push down, the other doesn't because of 
insufficient buffer capacity
 
-    QueryToolChest<ResultRow, GroupByQuery> toolChest = 
groupByFactory.getToolchest();
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical = 
groupByFactoryHistorical.getToolchest();
     QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory.mergeRunners(executorService, getRunner1(0))
+        toolChestHistorical.mergeResults(
+            groupByFactoryHistorical.mergeRunners(executorService, 
getRunner1(0))

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/6008)



##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownMultiNodeMergeTest.java:
##########
@@ -764,23 +785,26 @@
   {
     // one segment's results use limit push down, the other doesn't because of 
insufficient buffer capacity
 
-    QueryToolChest<ResultRow, GroupByQuery> toolChest = 
groupByFactory.getToolchest();
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical = 
groupByFactoryHistorical.getToolchest();
     QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory.mergeRunners(executorService, getRunner1(0))
+        toolChestHistorical.mergeResults(
+            groupByFactoryHistorical.mergeRunners(executorService, 
getRunner1(0))
         ),
-        (QueryToolChest) toolChest
+        (QueryToolChest) toolChestHistorical
     );
 
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical2 = 
groupByFactoryHistorical2.getToolchest();
     QueryRunner<ResultRow> theRunner2 = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory2.mergeRunners(executorService, getRunner2(1))
+        toolChestHistorical2.mergeResults(
+            groupByFactoryHistorical2.mergeRunners(executorService, 
getRunner2(1))

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/6009)



##########
processing/src/test/java/org/apache/druid/query/groupby/GroupByLimitPushDownMultiNodeMergeTest.java:
##########
@@ -627,23 +626,26 @@
   @Test
   public void testDescendingNumerics()
   {
-    QueryToolChest<ResultRow, GroupByQuery> toolChest = 
groupByFactory.getToolchest();
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical = 
groupByFactoryHistorical.getToolchest();
     QueryRunner<ResultRow> theRunner = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory.mergeRunners(executorService, getRunner1(2))
+        toolChestHistorical.mergeResults(
+            groupByFactoryHistorical.mergeRunners(executorService, 
getRunner1(2))
         ),
-        (QueryToolChest) toolChest
+        (QueryToolChest) toolChestHistorical
     );
 
+    QueryToolChest<ResultRow, GroupByQuery> toolChestHistorical2 = 
groupByFactoryHistorical2.getToolchest();
     QueryRunner<ResultRow> theRunner2 = new FinalizeResultsQueryRunner<>(
-        toolChest.mergeResults(
-            groupByFactory2.mergeRunners(executorService, getRunner2(3))
+        toolChestHistorical2.mergeResults(
+            groupByFactoryHistorical2.mergeRunners(executorService, 
getRunner2(3))

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/6007)



-- 
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]

Reply via email to