Open kuhushukla opened 4 months ago
Not sure if this is a udf or not?
@kuhushukla brought this to my attention this morning. Sorry I didn't respond here sooner.
collect_limited_list(true, 0, 0, 2)
...Not sure if this is a udf or not?
This isn't a standard SQL window aggregation, as far as I know. My guess is that this is a UDAF from Apache Datafu, per https://github.com/apache/datafu/pull/24.
From poking around, it appears that collect_limited_list(col, N)
functions like collect_list(col)
, but limits the output list-row to a maximum of N
elements.
On the face of it, I don't foresee this being difficult to implement. (It won't be deterministic.) I would, however, need to peruse the detailed definition of the function's behaviour.
Thank you Mithun!
Is your feature request related to a problem? Please describe. Windowing on GPU should support
CC: @mythrocks Also as part of this work it would be important to qualtify any performance improvements needed.