diff options
author | aozeritsky <aozeritsky@ydb.tech> | 2023-09-29 01:50:49 +0300 |
---|---|---|
committer | aozeritsky <aozeritsky@ydb.tech> | 2023-09-29 02:06:55 +0300 |
commit | 07db98c59ac92c0cbf4bb2380ef3cfa460574688 (patch) | |
tree | 545e5534034c37d66f9acbaaafdad2c44aa774eb | |
parent | 988fafb649de5d5b5b4d4c5335a087441c6763f4 (diff) | |
download | ydb-07db98c59ac92c0cbf4bb2380ef3cfa460574688.tar.gz |
Fix build EquiJoin after CBO
-rw-r--r-- | ydb/library/yql/dq/opt/dq_opt_join_cost_based_generic.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ydb/library/yql/dq/opt/dq_opt_join_cost_based_generic.cpp b/ydb/library/yql/dq/opt/dq_opt_join_cost_based_generic.cpp index ec3b6b1209..27c05b4e1c 100644 --- a/ydb/library/yql/dq/opt/dq_opt_join_cost_based_generic.cpp +++ b/ydb/library/yql/dq/opt/dq_opt_join_cost_based_generic.cpp @@ -91,7 +91,7 @@ struct TState { } } - TExprNode::TPtr MakeLabel(TExprContext& ctx, const std::vector<IOptimizer::TVarId>& vars) const { + auto MakeLabel(TExprContext& ctx, const std::vector<IOptimizer::TVarId>& vars) const { TVector<TExprNodePtr> label; label.reserve(vars.size() * 2); for (auto [relId, varId] : vars) { @@ -101,10 +101,7 @@ struct TState { label.emplace_back(ctx.NewAtom(Pos, column)); } - return Build<TCoAtomList>(ctx, Pos) - .Add(label) - .Done() - .Ptr(); + return label; } TExprBase BuildTree(TExprContext& ctx, int nodeId) { |