You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/05/25 15:12:00 UTC

[jira] [Commented] (ARROW-5005) [C++] Implement support for using selection vectors in scalar aggregate function kernels

    [ https://issues.apache.org/jira/browse/ARROW-5005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116107#comment-17116107 ] 

Wes McKinney commented on ARROW-5005:
-------------------------------------

I believe the best approach right now is to use selection vectors for this (see {{arrow::compute::ExecBatch::selection_vector}})

> [C++] Implement support for using selection vectors in scalar aggregate function kernels
> ----------------------------------------------------------------------------------------
>
>                 Key: ARROW-5005
>                 URL: https://issues.apache.org/jira/browse/ARROW-5005
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Francois Saint-Jacques
>            Priority: Major
>
> The aggregate kernels don't support mask (the result of a filter). Add the the following method to `AggregateFunction`.
> {code:c++}
> virtual Status ConsumeWithFilter(const Array& input, const Array& mask, void* state) const = 0;
> {code}
> The goal is to add support for AST similar to:
> {code:sql}
> SELECT AGG(x) FROM table WHERE pred;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)