Skip to content

Commit

Permalink
YQ-2651 use ChildPtr instead of ChildRef (ydb-platform#488)
Browse files Browse the repository at this point in the history
* YQ-2651 use ChildPtr instead of ChildRef
  • Loading branch information
zverevgeny authored Dec 27, 2023
1 parent 0ab713d commit f59afad
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ydb/library/yql/core/yql_match_recognize.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ inline TRowPattern ConvertPattern(const TExprNode::TPtr& pattern, TExprContext &
for (const auto& factor: term->Children()) {
YQL_ENSURE(factor->ChildrenSize() == 6, "Expect 6 args");
result.back().push_back(TRowPatternFactor{
factor->ChildRef(0)->IsAtom() ?
TRowPatternPrimary(TString(factor->ChildRef(0)->Content())) :
ConvertPattern(factor->ChildRef(0), ctx, nestingLevel + 1),
FromString<ui64>(factor->ChildRef(1)->Content()),
FromString<ui64>(factor->ChildRef(2)->Content()),
FromString<bool>(factor->ChildRef(3)->Content()),
FromString<bool>(factor->ChildRef(4)->Content()),
FromString<bool>(factor->ChildRef(5)->Content())
factor->Child(0)->IsAtom() ?
TRowPatternPrimary(TString(factor->Child(0)->Content())) :
ConvertPattern(factor->Child(0), ctx, nestingLevel + 1),
FromString<ui64>(factor->Child(1)->Content()),
FromString<ui64>(factor->Child(2)->Content()),
FromString<bool>(factor->Child(3)->Content()),
FromString<bool>(factor->Child(4)->Content()),
FromString<bool>(factor->Child(5)->Content())
});
}
}
Expand Down

0 comments on commit f59afad

Please sign in to comment.