[Improvement](join) remove insert_indices_from_join and special judge for -1 (#27779)
remove insert_indices_from_join and special judge for -1
This commit is contained in:
@ -225,23 +225,14 @@ void ColumnStruct::update_crcs_with_value(uint32_t* __restrict hash, PrimitiveTy
|
||||
}
|
||||
}
|
||||
|
||||
void ColumnStruct::insert_indices_from(const IColumn& src, const int* indices_begin,
|
||||
const int* indices_end) {
|
||||
const ColumnStruct& src_concrete = assert_cast<const ColumnStruct&>(src);
|
||||
void ColumnStruct::insert_indices_from(const IColumn& src, const uint32_t* indices_begin,
|
||||
const uint32_t* indices_end) {
|
||||
const auto& src_concrete = assert_cast<const ColumnStruct&>(src);
|
||||
for (size_t i = 0; i < columns.size(); ++i) {
|
||||
columns[i]->insert_indices_from(src_concrete.get_column(i), indices_begin, indices_end);
|
||||
}
|
||||
}
|
||||
|
||||
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