[Refactor](join) refactor of hash join (#27557)
Improve the performance under the tpch data set by reconstructing the join related code and the use of hash table Co-authored-by: HappenLee <happenlee@hotmail.com> Co-authored-by: BiteTheDDDDt <pxl290@qq.com>
This commit is contained in:
@ -233,6 +233,15 @@ void ColumnStruct::insert_indices_from(const IColumn& src, const int* indices_be
|
||||
}
|
||||
}
|
||||
|
||||
void ColumnStruct::insert_indices_from_join(const IColumn& src, const uint32_t* indices_begin,
|
||||
const uint32_t* indices_end) {
|
||||
const ColumnStruct& src_concrete = assert_cast<const ColumnStruct&>(src);
|
||||
for (size_t i = 0; i < columns.size(); ++i) {
|
||||
columns[i]->insert_indices_from_join(src_concrete.get_column(i), indices_begin,
|
||||
indices_end);
|
||||
}
|
||||
}
|
||||
|
||||
void ColumnStruct::insert_range_from(const IColumn& src, size_t start, size_t length) {
|
||||
const size_t tuple_size = columns.size();
|
||||
for (size_t i = 0; i < tuple_size; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user