Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9519

[Rust] Improve error message when getting a field by name from schema

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: Rust

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorgecarleitao Jorge Leitão
                Reporter:
                jorgecarleitao Jorge Leitão
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m