Skip to content

Commit 5aa2590

Browse files
committed
Add Comment for ConsumeJsonWhitespace Check
1 parent 5bf28c5 commit 5aa2590

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cpp/src/arrow/json/parser.cc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ class ParseImpl : public BlockParser {
749749

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

0 commit comments

Comments
 (0)