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

[C++] Json white space length detection error

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.16.0
    • C++
    • Patch

    Description

      Commit 21ca13a5cd [1] introduces a bug in ConsumeWhitespace() function.
      When all chars in a string are white spaces, it should return string
      length. But current code returns 0. It's not noticed because x86 goes
      rapidjson simd code path which is okay. Arm64 now goes the buggy code
      path and triggers json unit test failure.

      [1] https://github.com/apache/arrow/commit/21ca13a5cd9c1478d64370732fcfae72d52350dd#diff-664e724274fbe0ff1e03745aa452b4d6R48

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yibocai Yibo Cai Assign to me
            yibocai Yibo Cai
            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
                1h

                Slack

                  Issue deployment