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

Method ExtractUint64

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

Source from the content-addressed store, hash-verified

129}
130
131Status JsonReader::ExtractUint64(const Value* object,
132 const char* field,
133 uint64_t* result) const {
134 const Value* val;
135 RETURN_NOT_OK(ExtractField(object, field, &val));
136 if (PREDICT_FALSE(!val->IsUint64())) {
137 return Status::InvalidArgument(Substitute(
138 "wrong type during field extraction: expected uint64 but got $0",
139 TypeToString(val->GetType())));
140 }
141 *result = val->GetUint64();
142 return Status::OK();
143}
144
145Status JsonReader::ExtractDouble(const Value* object,
146 const char* field,

Callers 1

TESTFunction · 0.80

Calls 4

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

Tested by 1

TESTFunction · 0.64