[Feature] Local Exechange (#5470)

Avoid network transmission when the data stream sender node and destination exchange node
are in same BE, to improve performance and save CPU.
This commit is contained in:
stdpain
2021-03-21 11:25:33 +08:00
committed by GitHub
parent 029a8a046b
commit 8343abaad1
7 changed files with 139 additions and 23 deletions

View File

@ -193,13 +193,7 @@ Status HashJoinNode::construct_hash_table(RuntimeState* state) {
// take ownership of tuple data of build_batch
_build_pool->acquire_data(build_batch.tuple_data_pool(), false);
RETURN_IF_LIMIT_EXCEEDED(state, "Hash join, while constructing the hash table.");
// Call codegen version if possible
if (_process_build_batch_fn == NULL) {
process_build_batch(&build_batch);
} else {
_process_build_batch_fn(this, &build_batch);
}
process_build_batch(&build_batch);
VLOG_ROW << _hash_tbl->debug_string(true, &child(1)->row_desc());