pitrou commented on code in PR #50945:
URL: https://github.com/apache/arrow/pull/50945#discussion_r3914842193


##########
cpp/src/arrow/json/chunker.cc:
##########
@@ -124,49 +56,117 @@ namespace {
 // and uses actual JSON parsing to delimit them.
 class ParsingBoundaryFinder : public BoundaryFinder {
  public:
-  Status FindFirst(string_view partial, string_view block, int64_t* out_pos) 
override {
-    auto length = ConsumeWholeObject(MultiStringStream({partial, block}));
-    if (length == string_view::npos) {
+  Status FindFirst(std::string_view partial, std::string_view block,
+                   int64_t* out_pos) override {
+    simdjson::padded_string input;
+
+    if (partial.empty()) {
+      input = simdjson::padded_string(block);
+    } else if (block.empty()) {
+      input = simdjson::padded_string(partial);
+    } else {
+      simdjson::padded_string_builder builder(partial.size() + block.size());

Review Comment:
   Pity. Either we can backport it, emulate it, or use `#if` -based version 
checks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to