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

[C++] Improve JSONTypeError error message in testing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 11.0.0
    • C++

    Description

      If there is a type error, ArrayFromJSON returns an error message like "Invalid: Expected unsigned int or null, got JSON type 4", where JSON type 4 is a value of type rapidjson::Type enum. It is better to print type names rather than enum values such as "Invalid: Expected unsigned int or null, got JSON type array".

      Attachments

        Issue Links

          Activity

            People

              jinshang Jin Shang
              jinshang Jin Shang
              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 - 1h 10m
                  1h 10m