@@ -101,13 +101,13 @@ StorageJoinFromReadBuffer::StorageJoinFromReadBuffer(
101101 collectAllInputs (data, right_sample_block);
102102}
103103
104- void StorageJoinFromReadBuffer::buildJoin (Blocks & data, const Block header, std::shared_ptr<DB::TableJoin> analyzed_join)
104+ void StorageJoinFromReadBuffer::buildJoin (const Blocks & data, const Block & header, std::shared_ptr<DB::TableJoin> analyzed_join)
105105{
106106 auto build_join = [&]
107107 {
108- join = std::make_shared<HashJoin>(analyzed_join, header, overwrite, row_count);
109- for (Block block : data)
110- join->addBlockToJoin (std::move ( block) , true );
108+ join = std::make_shared<HashJoin>(analyzed_join, header, overwrite, row_count, " " , false , true );
109+ for (const Block& block : data)
110+ join->addBlockToJoin (block, true );
111111 };
112112 // / Record memory usage in Total Memory Tracker
113113 ThreadFromGlobalPoolNoTracingContextPropagation thread (build_join);
@@ -132,7 +132,7 @@ void StorageJoinFromReadBuffer::buildJoinLazily(DB::Block header, std::shared_pt
132132 std::unique_lock lock (join_mutex);
133133 if (join)
134134 return ;
135- join = std::make_shared<HashJoin>(analyzed_join, header, overwrite, row_count);
135+ join = std::make_shared<HashJoin>(analyzed_join, header, overwrite, row_count, " " , false , true );
136136 while (!input_blocks.empty ())
137137 {
138138 auto & block = *input_blocks.begin ();
@@ -154,11 +154,11 @@ void StorageJoinFromReadBuffer::buildJoinLazily(DB::Block header, std::shared_pt
154154}
155155
156156
157- // / The column names of 'rgiht_header ' could be different from the ones in `input_blocks`, and we must
157+ // / The column names of 'right_header ' could be different from the ones in `input_blocks`, and we must
158158// / use 'right_header' to build the HashJoin. Otherwise, it will cause exceptions with name mismatches.
159159// /
160160// / In most cases, 'getJoinLocked' is called only once, and the input_blocks should not be too large.
161- // / This is will be OK.
161+ // / This will be OK.
162162DB::JoinPtr StorageJoinFromReadBuffer::getJoinLocked (std::shared_ptr<DB::TableJoin> analyzed_join, DB::ContextPtr /* context*/ )
163163{
164164 if ((analyzed_join->forceNullableRight () && !use_nulls)
0 commit comments