witnet-rust icon indicating copy to clipboard operation
witnet-rust copied to clipboard

Feat: Implement idempotent array reducer

Open guidiaz opened this issue 3 years ago • 3 comments

So multi-dimensional retrievals can be composed as an array of sources, and data arrays overstep to tally phase, where a mode array reducer may be applied there (for instance).

guidiaz avatar Feb 01 '22 09:02 guidiaz

@guidiaz can you elaborate? Maybe some examples may help me understand what you mean :thinking:

aesedepece avatar Mar 01 '22 13:03 aesedepece

I think it refers to an identity reducer that can do [T] => [T], to be used in the aggregation stage. The use case would be to get different kinds of data using a single data request.

tmpolaczyk avatar Mar 02 '22 09:03 tmpolaczyk

I think it refers to an identity reducer that can do [T] => [T], to be used in the aggregation stage. The use case would be to get different kinds of data using a single data request.

Oh I see. You can opt out from filters at the aggregation stage, but not from reducers.

This is a tricky one, because [T] => T is the very signature of the aggregation stage.

Very interesting.

aesedepece avatar Mar 04 '22 11:03 aesedepece