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

Method HasSkew

be/src/util/runtime-profile.cc:2185–2198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2183}
2184
2185bool RuntimeProfile::AveragedCounter::HasSkew(double threshold, string* details) {
2186 bool has_skew = false;
2187 stringstream ss_details;
2188 if (unit_ == TUnit::DOUBLE_VALUE) {
2189 has_skew = EvaluateSkewWithCoV<double>(threshold, &ss_details);
2190 } else {
2191 has_skew = EvaluateSkewWithCoV<int64_t>(threshold, &ss_details);
2192 }
2193 if (has_skew && details) {
2194 *details = ss_details.str();
2195 return true;
2196 }
2197 return false;
2198}
2199
2200template <typename T>
2201bool RuntimeProfile::AveragedCounter::EvaluateSkewWithCoV(

Callers 1

AddSkewInfoMethod · 0.80

Calls 1

strMethod · 0.45

Tested by

no test coverage detected