Document reduce_agg aggregate function#12195
Conversation
92e00bd to
1d2a324
Compare
There was a problem hiding this comment.
does it mean that S must be one of these?
(just curious, why so?)
There was a problem hiding this comment.
typo: redcue_agg -> reduce_agg
Could you add an example of usage?
There was a problem hiding this comment.
does it mean reduce_agg runs on single node?
the wording suggests so; but existence of combineFunction suggests it is parallel
There was a problem hiding this comment.
No it runs in parallel. Any thoughts about how to revise the wording? -- Since when I read it, I didn't see it will run on single node, but I am obviously biased...
There was a problem hiding this comment.
@findepi, I don't think the name combineFunction implies parallelism.
There was a problem hiding this comment.
@dain not the name -- the existence of it.
It it was single-threaded, there would be just initialSate and inputFunction (aka "accumulator" or "accumulatingFunction").
The need for combineFunction arises only when you want to merge two branches of processing (ie parallel computations).
1d2a324 to
49d0764
Compare
|
Thanks @mbasmanova and @findepi for reviewing. I added examples, here is how it looks like: |
There was a problem hiding this comment.
I don't think any end user will understand what this means. Maybe state this as reduce_agg currently does not support variable width types, container types, or inexact types.
There was a problem hiding this comment.
@dain : Maybe I will just say reduce_agg currently supports boolean, integer (TINYINT, SMALLINT, INTEGER, BIGINT) and floating-point (REAL, DOUBLE) types .
There was a problem hiding this comment.
It also supports dates, times, timestamps, right?
49d0764 to
d111ce9
Compare
|
@findepi @dain @mbasmanova Is there anything else that's needed from this PR? We need to merge this and update the release notes PR (#12194) with a link to this new doc. |
d111ce9 to
d4de05b
Compare
|
Thanks @electrum for reviewing. Comments addressed. |
Extracted from prestodb/presto#12195
|
@electrum David, is this ready to merge? Could you approve? |
There was a problem hiding this comment.
typo: there should be only one colon, e.g. "returned: "
There was a problem hiding this comment.

No description provided.