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

[Go] The Indentation after the first Record arrjson writer is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.17.1
    • 2.0.0
    • Go

    Description

      The `jsonRecPrefix` is missed for the Records after the first one in the arrjson writer.

      We can see the output file `arrjson-xxxxxxxxxx` in the TempDir, such as

        "batches": [
          {
            "count": 5,
            "columns": [
              {
                "name": "fixed_size_binary_3",
                "count": 5,
                "VALIDITY": [
                  1,
                  0,
                  0,
                  1,
                  1
                ],
                "DATA": [
                  "303031",
                  "303032",
                  "303033",
                  "303034",
                  "303035"
                ]
              }
            ]
          },
      {                     //   <-   HERE! we can see it is not indented correctly
            "count": 5,
            "columns": [
              {
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fredgan FredGan
              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 40m
                  1h 40m