Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2873,7 +2873,7 @@ function(build_simdjson)
endfunction()

if(ARROW_WITH_SIMDJSON)
set(ARROW_SIMDJSON_REQUIRED_VERSION "4.3.0")
set(ARROW_SIMDJSON_REQUIRED_VERSION "5.0.2")
resolve_dependency(simdjson
FORCE_ANY_NEWER_VERSION
TRUE
Expand Down
9 changes: 0 additions & 9 deletions cpp/src/arrow/json/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -766,15 +766,6 @@ class ParseImpl : public BlockParser {
Status Parse(const std::shared_ptr<Buffer>& json) override {
RETURN_NOT_OK(ReserveScalarStorage(json->size()));

const std::string_view input(reinterpret_cast<const char*>(json->data()),
json->size());
// TODO(GH-51809): Remove this check once Arrow requires simdjson 5.0.2,
// which fixes truncated_bytes() for empty input.
const int64_t input_size = input.size();
if (internal::ConsumeJsonWhitespace(input, /*trailing=*/false) == input_size) {
return Status::OK();
}

auto parse = [&](const auto& input) -> Status {
ARROW_ASSIGN_OR_RAISE(auto stream, arrow::internal::ResolveSimdjsonResult(
parser_.iterate_many(input),
Expand Down
Loading