Skip to content

GH-51395: [C++][Docs] Replace RapidJSON with simdjson in row converter example - #51396

Open
Reranko05 wants to merge 5 commits into
apache:mainfrom
Reranko05:example-doc
Open

Reranko05 wants to merge 5 commits into
apache:mainfrom
Reranko05:example-doc

Conversation

@Reranko05

@Reranko05 Reranko05 commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Rationale for this change

This PR continues the simdjson migration by replacing RapidJSON usage in the C++ row converter example with simdjson and Arrow's existing JsonWriter.

Changes

  • Replace RapidJSON DOM parsing with simdjson's DOM API.
  • Replace RapidJSON JSON generation with Arrow's JsonWriter.
  • Preserve the existing row-to-Arrow and Arrow-to-row conversion flow.
  • Update the example to link against arrow::simdjson.

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@Reranko05 Reranko05 added the CI: Extra: C++ Run extra C++ CI label Sep 19, 2026
@Reranko05 Reranko05 changed the title GH-51395: [C++] Replace RapidJSON with Simdjson in row converter example GH-51395: [C++] Replace RapidJSON with simdjson in row converter example Sep 19, 2026
@Reranko05 Reranko05 changed the title GH-51395: [C++] Replace RapidJSON with simdjson in row converter example GH-51395: [C++][Docs] Replace RapidJSON with simdjson in row converter example Sep 19, 2026
@Reranko05

Copy link
Copy Markdown
Collaborator Author

Will mark this PR Ready to Review after #51038 is merged.

@Reranko05
Reranko05 marked this pull request as ready for review October 8, 2026 09:37
@Reranko05
Reranko05 requested a review from pitrou as a code owner October 8, 2026 09:37
Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:37

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 a review from kou October 8, 2026 09:37
// * arrow::TableBatchReader and Arrow iterators for converting Arrow tables back
// into row-based JSON data

namespace arrow {

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.

Example code shouldn't be in the arrow namespace because it showcases how third-party code using Arrow C++ could look like.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ah, okay. I got it.

Comment on lines +41 to +42
// * arrow::internal::JsonWriter for writing JSON values
// * arrow::internal::ParseJsonObject and related helpers for parsing JSON

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.

Examples should not use any internal Arrow APIs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Okay, understood.

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 8, 2026
Copilot AI balanced review requested due to automatic review settings October 9, 2026 09:20

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 balanced review requested due to automatic review settings October 9, 2026 09:40

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants