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

Method GetHashTblKey

be/src/exec/table-sink-base.cc:428–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void TableSinkBase::GetHashTblKey(const TupleRow* row,
429 const vector<ScalarExprEvaluator*>& evals, string* key) {
430 stringstream hash_table_key;
431 for (int i = 0; i < evals.size(); ++i) {
432 RawValue::PrintValueAsBytes(
433 evals[i]->GetValue(row), evals[i]->root().type(), &hash_table_key);
434 // Additionally append "/" to avoid accidental key collisions.
435 hash_table_key << "/";
436 }
437 *key = hash_table_key.str();
438}
439
440bool TableSinkBase::ShouldSkipStaging(RuntimeState* state, OutputPartition* partition) {
441 if (IsTransactional() || HasExternalOutputDir() || is_result_sink()) return true;

Callers

nothing calls this directly

Calls 5

rootMethod · 0.80
sizeMethod · 0.45
GetValueMethod · 0.45
typeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected