Skip to content

Commit c1f810c

Browse files
zverevgenyadameat
authored andcommitted
YQ-2651 use ChildPtr instead of ChildRef (ydb-platform#488)
* YQ-2651 use ChildPtr instead of ChildRef
1 parent a70780b commit c1f810c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ydb/library/yql/core/yql_match_recognize.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ inline TRowPattern ConvertPattern(const TExprNode::TPtr& pattern, TExprContext &
1212
for (const auto& factor: term->Children()) {
1313
YQL_ENSURE(factor->ChildrenSize() == 6, "Expect 6 args");
1414
result.back().push_back(TRowPatternFactor{
15-
factor->ChildRef(0)->IsAtom() ?
16-
TRowPatternPrimary(TString(factor->ChildRef(0)->Content())) :
17-
ConvertPattern(factor->ChildRef(0), ctx, nestingLevel + 1),
18-
FromString<ui64>(factor->ChildRef(1)->Content()),
19-
FromString<ui64>(factor->ChildRef(2)->Content()),
20-
FromString<bool>(factor->ChildRef(3)->Content()),
21-
FromString<bool>(factor->ChildRef(4)->Content()),
22-
FromString<bool>(factor->ChildRef(5)->Content())
15+
factor->Child(0)->IsAtom() ?
16+
TRowPatternPrimary(TString(factor->Child(0)->Content())) :
17+
ConvertPattern(factor->Child(0), ctx, nestingLevel + 1),
18+
FromString<ui64>(factor->Child(1)->Content()),
19+
FromString<ui64>(factor->Child(2)->Content()),
20+
FromString<bool>(factor->Child(3)->Content()),
21+
FromString<bool>(factor->Child(4)->Content()),
22+
FromString<bool>(factor->Child(5)->Content())
2323
});
2424
}
2525
}

0 commit comments

Comments
 (0)