Skip to content

GH-50730: [C++] Do not use throwing <simdjson> api - #50732

Merged
pitrou merged 4 commits into
apache:mainfrom
taepper:simdjson-cleanup
Jul 30, 2026
Merged

GH-50730: [C++] Do not use throwing <simdjson> api#50732
pitrou merged 4 commits into
apache:mainfrom
taepper:simdjson-cleanup

Conversation

@taepper

@taeppertaepper commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

The simdjson API has a throwing and non-throwing subset. #50672 activated a compiler flag that disables the throwing subset of the API, which broke some CI builds.

What changes are included in this PR?

This changes json_write_internal.cc and from_string.cc to use the non-throwing simdjson api

Are these changes tested?

Yes

Are there any user-facing changes?

No

@taepper
taepper requested a review from pitrou as a code ownerJuly 30, 2026 06:04
@github-actionsgithub-actionsBot added awaiting review Awaiting review Component: C++ and removed awaiting review Awaiting review labels Jul 30, 2026
@taeppertaepper changed the title GH-50703: do not use throwing <simdjson> apiGH-50730: do not use throwing <simdjson> apiJul 30, 2026
@github-actionsgithub-actionsBot added the awaiting review Awaiting review label Jul 30, 2026
@pitroupitrou added the CI: Extra: C++ Run extra C++ CI label Jul 30, 2026
Comment threadcpp/src/arrow/json/json_writer_internal.cc Outdated
@github-actionsgithub-actionsBot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jul 30, 2026
@taepper
taepper requested a review from pitrouJuly 30, 2026 06:56

@pitroupitrou 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.

Just one suggestion. Also, there are some compilation failures that need fixing.

Comment threadcpp/src/arrow/json/json_writer_internal.cc Outdated
@pitroupitrou changed the title GH-50730: do not use throwing <simdjson> apiGH-50730: [C++]Ddo not use throwing <simdjson> apiJul 30, 2026
@pitroupitrou changed the title GH-50730: [C++]Ddo not use throwing <simdjson> apiGH-50730: [C++] Do not use throwing <simdjson> apiJul 30, 2026
@pitrou

Copy link
Copy Markdown
Member

The JNI macOS compilation error may be related but this PR still improves on the statu quo, so I'll merge.

@pitrou
pitrou merged commit 86f8d42 into apache:mainJul 30, 2026
57 of 68 checks passed
@pitroupitrou removed the awaiting committer review Awaiting committer review label Jul 30, 2026
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 86f8d42.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 7 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for freeto 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.

2 participants

@taepper@pitrou