You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Vibhatha Lakmal Abeykoon (Jira)" <ji...@apache.org> on 2022/01/25 06:41:00 UTC

[jira] [Commented] (ARROW-15258) [C++] Easy options to create a source node from a table

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

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

[~westonpace] 

One straight forward way to provide this functionality is to use 

The `ScanNodeOptions` can be wrapped and create `TableSourceOptions` 

Reasoning: When creating from existing table, user may need to filter, select columns, etc as options. And also we can add other options required for this operation too. 

Table -> InMemoryDataset -> Scan(table, options)

Any thoughts on this. 

> [C++] Easy options to create a source node from a table
> -------------------------------------------------------
>
>                 Key: ARROW-15258
>                 URL: https://issues.apache.org/jira/browse/ARROW-15258
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: C++
>            Reporter: Weston Pace
>            Assignee: Vibhatha Lakmal Abeykoon
>            Priority: Major
>
> Given a Table there should be a very simple way to create a source node.  Something like:
> {code}
>   std::shared_ptr<Table> table = ...
>   ARROW_RETURN_NOT_OK(arrow::compute::MakeExecNode(
>       "table", plan, {}, arrow::compute::TableSourceOptions{table.get()}));
> {code}



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