Skip to content

Commit e41835d

Browse files
Revert "Fixed a problem with plans in PG ut (#1974)" (#2020)
1 parent 3afcaf9 commit e41835d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ydb/core/kqp/opt/kqp_query_plan.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,13 +1881,9 @@ void BuildPlanIndex(NJson::TJsonValue& plan, THashMap<int, NJson::TJsonValue>& p
18811881

18821882
auto pos = precomputeName.find("precompute");
18831883
if (pos != TString::npos) {
1884-
if (!precomputes.contains(precomputeName.substr(pos))) {
1885-
precomputes[precomputeName.substr(pos)] = plan;
1886-
}
1884+
precomputes[precomputeName.substr(pos)] = plan;
18871885
} else if (precomputeName.size()>=4 && precomputeName.find("CTE ") != TString::npos) {
1888-
if (!precomputes.contains(precomputeName.substr(4))) {
1889-
precomputes[precomputeName.substr(4)] = plan;
1890-
}
1886+
precomputes[precomputeName.substr(4)] = plan;
18911887
}
18921888
}
18931889

0 commit comments

Comments
 (0)