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

Vibhatha Lakmal Abeykoon commented on ARROW-15262:
--------------------------------------------------

Also if we extend the usability further, do we expect this sink to provide some 
functions like, sorting or k-select features? Or should we leave it from this 
and let the user program the logic if required down another stream? 

> [C++] Create a ToTable sink node
> --------------------------------
>
>                 Key: ARROW-15262
>                 URL: https://issues.apache.org/jira/browse/ARROW-15262
>             Project: Apache Arrow
>          Issue Type: Sub-task
>            Reporter: Weston Pace
>            Assignee: Vibhatha Lakmal Abeykoon
>            Priority: Major
>
> The invocation would look something like:
> {code}
>   std::shared_ptr<Table> out_table;
>   ARROW_RETURN_NOT_OK(arrow::compute::MakeExecNode(
>       "table_sink", plan, {terminal_node}, 
> arrow::compute::TableSinkOptions{&out_table}));
> {code}
> When the plan is finished (assuming a successful finish) then {{out_table}} 
> will be the output of the plan collected into a table.  The schema of the 
> table will be {{terminal_node->output_schema()}}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to