This commit is contained in:
vdimir 2024-11-20 11:28:35 +00:00
parent 82a7c33796
commit dc0aa94110
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -122,9 +122,6 @@ ScatteredBlock HashJoinMethods<KIND, STRICTNESS, MapsTemplate>::joinBlockImpl(
block.filterBySelector();
for (size_t i = 0; i < added_columns.size(); ++i)
source_block.insert(added_columns.moveColumn(i));
const auto & table_join = join.table_join;
std::set<size_t> block_columns_to_erase;
if (join.canRemoveColumnsFromLeftBlock())
@ -139,6 +136,9 @@ ScatteredBlock HashJoinMethods<KIND, STRICTNESS, MapsTemplate>::joinBlockImpl(
}
}
for (size_t i = 0; i < added_columns.size(); ++i)
source_block.insert(added_columns.moveColumn(i));
std::vector<size_t> right_keys_to_replicate [[maybe_unused]];
if constexpr (join_features.need_filter)