Repository navigation
Conversation
lidavidm
left a comment
There was a problem hiding this comment.
Thanks! Looks good, just some questions on how we should organize the sink nodes.
7818e37 to
fe81c40
Compare
There was a problem hiding this comment.
I think this is a good starting point. Although, if I'm using "head", "limit", or a size-limited sink node of any kind, I think my motivation would be concern that I have a lot of data and I would expect the node to limit that.
For example, a top-k implementation could periodically (when batches_ has some configurable # of rows) run through and discard data. The way it is written now it would still require me to buffer the entire dataset in memory (and/or spillover).
Admittedly this would be more CPU efficient but I think that can be a reasonable tradeoff in some cases. Do we have a JIRA for a more RAM-efficient top-k sink?
|
There is a JIRA (can't find it right now) for a streaming/scalar aggregate version of the kernel, yes. I think this suffices to get things out the door, though, so to speak. We don't really have an out-of-core story in general right now. |
L
Yes it's here: https://issues.apache.org/jira/browse/ARROW-14202 |
Hook up the SelectK kernel in ARROW-1565 to the query engine as another type of sink node. Also mentioned here: https://issues.apache.org/jira/browse/ARROW-12763 Closes apache#11274 from aocsa/aocsa/ARROW-13973 Authored-by: Alexander <aocsa.cs@gmail.com> Signed-off-by: Neal Richardson <neal.p.richardson@gmail.com>
Hook up the SelectK kernel in ARROW-1565 to the query engine as another type of sink node.
Also mentioned here:
https://issues.apache.org/jira/browse/ARROW-12763