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

[C++] Enable example arrays to be written with a simplified JSON representation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • C++

    Description

      In addition to making it easier to generate random data as described in ARROW-2329, I think it would be useful to reduce some of the boilerplate associated with writing down explicit test cases. The benefits of this will be especially pronounced when writing nested arrays.

      Example code that could be improved this way:

      https://github.com/apache/arrow/blob/master/cpp/src/arrow/array-test.cc#L3271

      Rather than having a ton of hand-written assertions, we could compare with the expected true dataset. Of course, this itself has to be tested endogenously, but I think we can write enough tests for the JSON parser bit to be able to have confidence in tests that are written with it

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              wesm Wes McKinney
              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 - 4h 10m
                  4h 10m