Skip to content

GH-51013: [C++] Replace RapidJSON in JSON test utilities - #51014

Merged
pitrou merged 10 commits into
apache:mainfrom
Reranko05:gh-35460-tests
Sep 8, 2026
Merged

pitrou merged 10 commits into
apache:mainfrom
Reranko05:gh-35460-tests

Conversation

@Reranko05

@Reranko05 Reranko05 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Rationale for this change

This PR continues the simdjson migration by replacing RapidJSON usage in the C++ JSON test and testing utilities with simdjson and Arrow's existing JsonWriter.

Changes

  • Replace rapidjson::Writer and StringBuffer usage in JSON test utilities with JsonWriter.
  • Replace RapidJSON-based JSON pretty-printing with simdjson's fractured_json_string().
  • Replace RapidJSON DOM parsing in TensorFromJSON() with simdjson's DOM API.
  • Add test coverage for TensorFromJSON() with strides and dimension names.
  • Update test linking to include arrow::simdjson.

@Reranko05 Reranko05 added the CI: Extra: C++ Run extra C++ CI label Aug 26, 2026
@Reranko05
Reranko05 marked this pull request as ready for review August 27, 2026 12:19
@Reranko05
Reranko05 requested a review from pitrou as a code owner August 27, 2026 12:19
Copilot AI lite review requested due to automatic review settings August 27, 2026 12:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Reranko05
Reranko05 requested review from kou and rok August 27, 2026 12:20
Comment thread cpp/src/arrow/util/simdjson_internal.h Outdated
Comment thread cpp/src/arrow/util/simdjson_internal.h Outdated
Comment thread cpp/src/arrow/json/test_common.h Outdated
Comment thread cpp/src/arrow/json/reader_test.cc Outdated
Comment thread cpp/src/arrow/json/parser_test.cc Outdated
@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Aug 27, 2026
Copilot AI review requested due to automatic review settings September 7, 2026 04:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 7, 2026 04:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 7, 2026 04:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 7, 2026 05:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 7, 2026 05:17
Copilot AI review requested due to automatic review settings September 7, 2026 05:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 7, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 7, 2026 13:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Reranko05

Copy link
Copy Markdown
Collaborator Author

@pitrou Could you review this when you have time. (CI failures seem unrelated)

Copilot AI review requested due to automatic review settings September 8, 2026 03:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Reranko05

Copy link
Copy Markdown
Collaborator Author

@pitrou, I have made the dicussed changes. (CI failures doesnt seem related)

Copilot AI review requested due to automatic review settings September 8, 2026 08:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Comment thread cpp/src/arrow/json/parser_test.cc Outdated

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, thanks for doing this work @Reranko05 !

@pitrou

pitrou commented Sep 8, 2026

Copy link
Copy Markdown
Member

@github-actions crossbow submit -g cpp

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Revision: 259feaf

Submitted crossbow builds: ursacomputing/crossbow @ actions-f8a3b2cdad

Task Status
example-cpp-minimal-build-static GitHub Actions
example-cpp-minimal-build-static-system-dependency GitHub Actions
example-cpp-tutorial GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-debian-13-cpp-amd64 GitHub Actions
test-debian-13-cpp-i386 GitHub Actions
test-debian-experimental-cpp-gcc-15 GitHub Actions
test-fedora-42-cpp GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-bundled-offline GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizer GitHub Actions

@Reranko05

Copy link
Copy Markdown
Collaborator Author

@pitrou Thanks for the review!

@pitrou

pitrou commented Sep 8, 2026

Copy link
Copy Markdown
Member

CI failures are unrelated, I'll merge.

@pitrou
pitrou merged commit f14ae5b into apache:main Sep 8, 2026
66 of 71 checks passed
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants