MCPcopy Create free account
hub / github.com/apache/arrow / AppendValue

Method AppendValue

cpp/src/arrow/json/from_string.cc:698–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696 }
697
698 Status AppendValue(sj::value& json_obj) override {
699 ARROW_ASSIGN_OR_RAISE(bool is_null, internal::IsJsonNull(json_obj));
700 if (is_null) {
701 return this->AppendNull();
702 }
703 RETURN_NOT_OK(builder_->Append());
704 // Extend the child converter with this JSON array
705 ARROW_ASSIGN_OR_RAISE(auto array, internal::GetJsonAs<sj::array>(json_obj));
706 ARROW_ASSIGN_OR_RAISE(int32_t size, child_converter_->AppendValues(array));
707 if (size != list_size_) {
708 return Status::Invalid("incorrect list size ", size);
709 }
710 return Status::OK();
711 }
712
713 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
714

Callers

nothing calls this directly

Calls 4

OKFunction · 0.70
InvalidFunction · 0.50
AppendNullMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected