diff options
author | Pavel Velikhov <pavelvelikhov@ydb.tech> | 2024-01-31 17:16:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 17:16:17 +0300 |
commit | ea57c8867ceca391357c3c5ffcc5ba6738b49adc (patch) | |
tree | 8ecb001457d8f1d911ca8647fdefe7e4307f4446 | |
parent | b50b67d8c078f026eceffa421c906d220dc9259a (diff) | |
download | ydb-ea57c8867ceca391357c3c5ffcc5ba6738b49adc.tar.gz |
Fixed clang14 problem with lambda capture (#1475)
-rw-r--r-- | ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp b/ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp index b421ba2975..fed03ea383 100644 --- a/ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp +++ b/ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp @@ -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; } |