adarshsanjeev commented on code in PR #15953:
URL: https://github.com/apache/druid/pull/15953#discussion_r1538635316
##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/querykit/results/ExportResultsFrameProcessorFactory.java:
##########
@@ -127,11 +139,46 @@ public ProcessorsAndChannels<Object, Long> makeProcessors(
);
return new ProcessorsAndChannels<>(
- ProcessorManagers.of(processors),
+ ProcessorManagers.of(processors)
+ .withAccumulation(new ArrayList<String>(), (acc,
file) -> {
+ ((ArrayList<String>) acc).add((String) file);
+ return acc;
+ }),
OutputChannels.none()
);
}
+ @Nullable
+ @Override
+ public TypeReference<Object> getResultTypeReference()
+ {
+ return new TypeReference<Object>() {};
+ }
+
+ @Override
+ public Object mergeAccumulatedResult(Object accumulated, Object
otherAccumulated)
+ {
+ // Maintain upgrade compatibility, if a worker does not return a list,
ignore it.
Review Comment:
Changed to throw an exception
--
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]