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

Function ErrorCount

be/src/util/error-util.cc:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127size_t ErrorCount(const ErrorLogMap& errors) {
128 ErrorLogMap::const_iterator cit = errors.find(TErrorCode::GENERAL);
129 if (cit == errors.end()) return errors.size();
130 return errors.size() + cit->second.messages_size() - 1;
131}
132
133TErrorCode::type HS2TStatusCodeToTErrorCode(const TStatusCode::type& hs2Code) {
134 // There is no one-one mapping between HS2 error codes and TStatusCode types.

Callers 2

LogErrorMethod · 0.85
TESTFunction · 0.85

Calls 3

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68