github-code-scanning[bot] commented on code in PR #13773:
URL: https://github.com/apache/druid/pull/13773#discussion_r1239269491
##########
processing/src/test/java/org/apache/druid/query/operator/OperatorTestHelper.java:
##########
@@ -95,20 +101,49 @@
return this;
}
- public OperatorTestHelper withPushFn(JustPushMe fn)
+ public OperatorTestHelper withPushFn(Supplier<JustPushMe> fnSupplier)
{
- return withReceiver(() -> new TestReceiver(fn));
+ return withReceiver(() -> new TestReceiver(fnSupplier.get()));
}
- public OperatorTestHelper runToCompletion(Operator op)
+ public void runToCompletion(Operator op)
{
TestReceiver receiver = this.receiverSupply.get();
Operator.go(op, receiver);
Assert.assertTrue(receiver.isCompleted());
if (finalValidation != null) {
finalValidation.accept(receiver);
}
- return this;
+
+ for (int i = 1; i < receiver.getNumPushed(); ++i) {
Review Comment:
## Comparison of narrow type with wide type in loop condition
Comparison between [expression](1) of type int and [expression](2) of wider
type long.
[Show more
details](https://github.com/apache/druid/security/code-scanning/5176)
--
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]