Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ bool IsLookupJoinApplicable(std::shared_ptr<IBaseOptimizerNode> left,
}

for (auto [leftCol, rightCol] : joinConditions) {
// Fix for clang14, somehow structured binding does not create a variable in clang14
auto r = rightCol;
if (! find_if(rightStats->KeyColumns.begin(), rightStats->KeyColumns.end(),
[rightCol] (const TString& s) {
return rightCol.AttributeName == s;
[r] (const TString& s) {
return r.AttributeName == s;
} )) {
return false;
}
Expand Down