Skip to content

Commit

Permalink
[CBO] user warning added if cbo didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Ivanov committed Nov 25, 2024
1 parent d07a485 commit 224330a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ydb/library/yql/dq/opt/dq_opt_join_cost_based.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ TExprBase DqOptimizeEquiJoinWithCosts(
// of the EquiJoin and n-1 argument are the parameters to EquiJoin

if (!DqCollectJoinRelationsWithStats(rels, typesCtx, equiJoin, providerCollect)){
ctx.AddWarning(YqlIssue({}, TIssuesIds::WARNING, "Cost Based Optimizer didn't work: couldn't load statistics"));
return node;
}

Expand Down

0 comments on commit 224330a

Please sign in to comment.