Jorge created ARROW-9519:
----------------------------
Summary: [Rust] Improve error message when getting a field by name
from schema
Key: ARROW-9519
URL: https://issues.apache.org/jira/browse/ARROW-9519
Project: Apache Arrow
Issue Type: Improvement
Components: Rust
Reporter: Jorge
Assignee: Jorge
Currently, when a name that does not exist on the Schema is passed to
{{Schema::index_of}}, the error message is just the name itself. This makes it
a bit difficult to debug.
I propose that we change the that error message to something like
{{Unable to get field named "nickname". Valid fields: ["first_name",
"last_name", "address"]}}
to make it easier to understand.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)