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

Method CanReferenceFieldByName

cpp/src/arrow/type.cc:2391–2397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2389}
2390
2391Status Schema::CanReferenceFieldByName(std::string_view name) const {
2392 if (GetFieldByName(name) == nullptr) {
2393 return Status::Invalid("Field named '", name,
2394 "' not found or not unique in the schema.");
2395 }
2396 return Status::OK();
2397}
2398
2399Status Schema::CanReferenceFieldsByNames(const std::vector<std::string>& names) const {
2400 for (const auto& name : names) {

Callers 1

TEST_FFunction · 0.45

Calls 2

InvalidFunction · 0.70
OKFunction · 0.70

Tested by 1

TEST_FFunction · 0.36