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/03/19 14:28:00 UTC

[jira] [Assigned] (ARROW-15967) [C++] Return a nice error if the user types the wrong node name in an exec plan

     [ https://issues.apache.org/jira/browse/ARROW-15967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vibhatha Lakmal Abeykoon reassigned ARROW-15967:
------------------------------------------------

    Assignee: Vibhatha Lakmal Abeykoon

> [C++] Return a nice error if the user types the wrong node name in an exec plan
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-15967
>                 URL: https://issues.apache.org/jira/browse/ARROW-15967
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Weston Pace
>            Assignee: Vibhatha Lakmal Abeykoon
>            Priority: Major
>
> When writing code to generate exec plans we often write something like...
> {noformat}
> MakeExecNodeOrStop("write", plan.get(), {table}, options);
> {noformat}
> A few times now a user has (possibly via copy / paste) written the wrong node (e.g. "sink" instead of "write") and when that happens we try and do a checked cast on the options (e.g. to WriteNodeOptions) and this raises an exception.  We should do a safer cast and return an invalid status with a nice message.



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