Skip to content

Commit 98b1e58

Browse files
committed
YQL-19921: Proper handle {} and []
commit_hash:c0d84e9086c46ed6c059307704d44f9f3e5c75b9
1 parent 0b32706 commit 98b1e58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

yt/yql/providers/yt/codec/yt_arrow_converter.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,13 @@ void SkipYson(TYsonBuffer& buf) {
323323
case BeginListSymbol: {
324324
buf.Next();
325325
for (;;) {
326+
if (buf.Current() == EndListSymbol) {
327+
break;
328+
}
326329
SkipYson(buf);
327330
if (buf.Current() == ListItemSeparatorSymbol) {
328331
buf.Next();
329332
}
330-
if (buf.Current() == EndListSymbol) {
331-
break;
332-
}
333333
}
334334
buf.Next();
335335
break;
@@ -339,16 +339,16 @@ void SkipYson(TYsonBuffer& buf) {
339339
auto originalEnd = buf.Current() == BeginMapSymbol ? EndMapSymbol : EndAttributesSymbol;
340340
buf.Next();
341341
for (;;) {
342+
if (buf.Current() == originalEnd) {
343+
break;
344+
}
342345
SkipYson(buf);
343346
YQL_ENSURE(buf.Current() == KeyValueSeparatorSymbol);
344347
buf.Next();
345348
SkipYson(buf);
346349
if (buf.Current() == KeyedItemSeparatorSymbol) {
347350
buf.Next();
348351
}
349-
if (buf.Current() == originalEnd) {
350-
break;
351-
}
352352
}
353353
buf.Next();
354354
break;

0 commit comments

Comments
 (0)