summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruzhas <[email protected]>2023-10-17 17:49:13 +0300
committeruzhas <[email protected]>2023-10-17 18:35:25 +0300
commit0970751d6dad2e93fe2a5494ff00af6194b92307 (patch)
tree8eccb59f3bf890fa645e6d18b85867aa7d6c2184
parent81a7660a8b045e19f97bc949f94c6541f8fd2362 (diff)
fix coverity issue USE_AFTER_MOVE
-rw-r--r--ydb/library/yql/providers/yt/provider/yql_yt_join_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/library/yql/providers/yt/provider/yql_yt_join_impl.cpp b/ydb/library/yql/providers/yt/provider/yql_yt_join_impl.cpp
index 1007638a52f..624a989deed 100644
--- a/ydb/library/yql/providers/yt/provider/yql_yt_join_impl.cpp
+++ b/ydb/library/yql/providers/yt/provider/yql_yt_join_impl.cpp
@@ -1920,7 +1920,7 @@ bool RewriteYtMapJoin(TYtEquiJoin equiJoin, const TJoinLabels& labels, bool isLo
auto mapLambda = ctx.NewLambda(pos, ctx.NewArguments(pos, {std::move(listArg)}), std::move(joined));
if (const auto premap = GetPremapLambda(leftLeaf)) {
TExprNode::TPtr placeHolder;
- std::tie(placeHolder, mapLambda) = ReplaceDependsOn(std::move(mapLambda), ctx, state->Types);
+ std::tie(placeHolder, mapLambda) = ReplaceDependsOn(mapLambda, ctx, state->Types);
mapLambda = ctx.Builder(mapLambda->Pos())
.Lambda()
@@ -1941,7 +1941,7 @@ bool RewriteYtMapJoin(TYtEquiJoin equiJoin, const TJoinLabels& labels, bool isLo
// since premap doesn't affect key columns we can apply lookup join filter before premap
if (lookupJoinFilterLambda) {
TExprNode::TPtr placeHolder;
- std::tie(placeHolder, mapLambda) = ReplaceDependsOn(std::move(mapLambda), ctx, state->Types);
+ std::tie(placeHolder, mapLambda) = ReplaceDependsOn(mapLambda, ctx, state->Types);
mapLambda = ctx.Builder(mapLambda->Pos())
.Lambda()