You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2022/03/18 01:56:00 UTC

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

Weston Pace created ARROW-15967:
-----------------------------------

             Summary: [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: New Feature
          Components: C++
            Reporter: Weston Pace


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)