Skip to content

[C++] Return a nice error if the user types the wrong node name in an exec plan #31392

@asfimport

Description

@asfimport

When writing code to generate exec plans we often write something like...


MakeExecNodeOrStop("write", plan.get(), {table}, options);

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.

Reporter: Weston Pace / @westonpace

Note: This issue was originally created as ARROW-15967. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions