Array/string output from javascript aggregator

Hi,

I would want to output a string or an array from a javascript aggregator. Such as;

“fnCombine”: “function(partialA, partialB) { return [1,2,3]; }”

but it seems like the result is always equal to NaN in the query response whether I try for a string or an array.

Is this possible?

Right now, the javascript aggregator only supports numeric return values. If you want to return strings, arrays, etc, you’d need to do it as a native Java extension.

Thank you, I think a native java extension would be even better in terms of performance,