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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • 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

              jorgecarleitao Jorge Leitão
              jorgecarleitao Jorge Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              3 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