MCPcopy Create free account
hub / github.com/apache/impala / ExtractObject

Method ExtractObject

be/src/kudu/util/jsonreader.cc:191–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191Status JsonReader::ExtractObject(const Value* object,
192 const char* field,
193 const Value** result) const {
194 const Value* val;
195 RETURN_NOT_OK(ExtractField(object, field, &val));
196 if (PREDICT_FALSE(!val->IsObject())) {
197 return Status::InvalidArgument(Substitute(
198 "wrong type during field extraction: expected object but got $0",
199 TypeToString(val->GetType())));
200 }
201 *result = val;
202 return Status::OK();
203}
204
205Status JsonReader::ExtractObjectArray(const Value* object,
206 const char* field,

Callers 2

TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 4

InvalidArgumentFunction · 0.85
SubstituteFunction · 0.85
OKFunction · 0.85
TypeToStringFunction · 0.70

Tested by 2

TESTFunction · 0.64
TEST_FFunction · 0.64