| 1160 | } |
| 1161 | |
| 1162 | Status StructArray::CanReferenceFieldByName(const std::string& name) const { |
| 1163 | if (GetFieldByName(name) == nullptr) { |
| 1164 | return Status::Invalid("Field named '", name, |
| 1165 | "' not found or not unique in the struct."); |
| 1166 | } |
| 1167 | return Status::OK(); |
| 1168 | } |
| 1169 | |
| 1170 | Status StructArray::CanReferenceFieldsByNames( |
| 1171 | const std::vector<std::string>& names) const { |