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

Method ExtractInt64

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

Source from the content-addressed store, hash-verified

115}
116
117Status JsonReader::ExtractInt64(const Value* object,
118 const char* field,
119 int64_t* result) const {
120 const Value* val;
121 RETURN_NOT_OK(ExtractField(object, field, &val));
122 if (PREDICT_FALSE(!val->IsInt64())) {
123 return Status::InvalidArgument(Substitute(
124 "wrong type during field extraction: expected int64 but got $0",
125 TypeToString(val->GetType())));
126 }
127 *result = val->GetInt64();
128 return Status::OK();
129}
130
131Status JsonReader::ExtractUint64(const Value* object,
132 const char* field,

Callers 3

TESTFunction · 0.80
TEST_FFunction · 0.80
CheckMergeOutputFunction · 0.80

Calls 5

InvalidArgumentFunction · 0.85
SubstituteFunction · 0.85
OKFunction · 0.85
GetInt64Method · 0.80
TypeToStringFunction · 0.70

Tested by 3

TESTFunction · 0.64
TEST_FFunction · 0.64
CheckMergeOutputFunction · 0.64