Skip to content

Commit 6b370e0

Browse files
committed
Check one field in raw format
1 parent c5cd816 commit 6b370e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ydb/library/yql/providers/common/mkql/parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ TRuntimeNode BuildParseCall(
215215
if (parseItemStructType->GetMembersCount() == 0) {
216216
return ctx.ProgramBuilder.NewStruct(parseItemType, {});
217217
}
218+
MKQL_ENSURE(parseItemStructType->GetMembersCount() == 1, "Only one field supported in raw format");
218219

219220
bool isOptional;
220221
const auto schemeType = UnpackOptionalData(

0 commit comments

Comments
 (0)