Skip to content

Commit

Permalink
YQL-17250: Add stats for hybrid skip checks (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkovalev authored Feb 12, 2024
1 parent 3dd5b21 commit 4e1df02
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 264 deletions.
3 changes: 1 addition & 2 deletions ydb/library/yql/core/yql_opt_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1779,8 +1779,7 @@ TExprNode::TPtr FindNonYieldTransparentNodeImpl(const TExprNode::TPtr& root, con
return {};
}

TExprNode::TPtr FindNonYieldTransparentNode(const TExprNode::TPtr& root, const TTypeAnnotationContext& typeCtx) {
TNodeSet flowSources;
TExprNode::TPtr FindNonYieldTransparentNode(const TExprNode::TPtr& root, const TTypeAnnotationContext& typeCtx, TNodeSet flowSources) {
TExprNode::TPtr from = root;
if (root->IsLambda()) {
if (IsIdentityLambda(*root)) {
Expand Down
2 changes: 1 addition & 1 deletion ydb/library/yql/core/yql_opt_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ bool IsIdentityLambda(const TExprNode& lambda);
TExprNode::TPtr MakeExpandMap(TPositionHandle pos, const TVector<TString>& columns, const TExprNode::TPtr& input, TExprContext& ctx);
TExprNode::TPtr MakeNarrowMap(TPositionHandle pos, const TVector<TString>& columns, const TExprNode::TPtr& input, TExprContext& ctx);

TExprNode::TPtr FindNonYieldTransparentNode(const TExprNode::TPtr& root, const TTypeAnnotationContext& typeCtx);
TExprNode::TPtr FindNonYieldTransparentNode(const TExprNode::TPtr& root, const TTypeAnnotationContext& typeCtx, TNodeSet flowSources = TNodeSet());
bool IsYieldTransparent(const TExprNode::TPtr& root, const TTypeAnnotationContext& typeCtx);

bool IsStrict(const TExprNode::TPtr& node);
Expand Down
Loading

0 comments on commit 4e1df02

Please sign in to comment.