This commit is contained in:
vdimir 2024-11-20 15:55:42 +00:00
parent 93e10644b7
commit c6df1b09c6
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -438,7 +438,7 @@ bool HashJoin::isUsedByAnotherAlgorithm() const
bool HashJoin::canRemoveColumnsFromLeftBlock() const
{
return table_join->enableEnalyzer() && !table_join->hasUsing() && !isUsedByAnotherAlgorithm();
return table_join->enableEnalyzer() && !table_join->hasUsing() && !isUsedByAnotherAlgorithm() && strictness != JoinStrictness::RightAny;
}
void HashJoin::initRightBlockStructure(Block & saved_block_sample)