aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraneporada <aneporada@ydb.tech>2022-08-01 12:49:47 +0300
committeraneporada <aneporada@ydb.tech>2022-08-01 12:49:47 +0300
commit0ee74fa572518da9dae897cbbf1c7241086c3a6e (patch)
tree6ca43409bc5d1fc56f7236b1faadc8b63d1a56f6
parente8b26c6cb50d489df1967783be26b4a75d3fe0cc (diff)
downloadydb-0ee74fa572518da9dae897cbbf1c7241086c3a6e.tar.gz
[] [yson2] Fix converting to empty struct type
-rw-r--r--ydb/library/yql/minikql/dom/peel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/library/yql/minikql/dom/peel.cpp b/ydb/library/yql/minikql/dom/peel.cpp
index 33f22011dd3..7f996688b81 100644
--- a/ydb/library/yql/minikql/dom/peel.cpp
+++ b/ydb/library/yql/minikql/dom/peel.cpp
@@ -255,7 +255,8 @@ TUnboxedValuePod PeelTuple(const ITypeInfoHelper::TPtr typeHelper, const TType*
template<bool Strict, bool AutoConvert>
TUnboxedValuePod PeelStruct(const ITypeInfoHelper::TPtr typeHelper, const TType* shape, const TUnboxedValuePod x, const IValueBuilder* valueBuilder, const TSourcePosition& pos) {
- if (const auto structTypeInspector = TStructTypeInspector(*typeHelper, shape); const auto size = structTypeInspector.GetMembersCount()) {
+ if (const auto structTypeInspector = TStructTypeInspector(*typeHelper, shape)) {
+ const auto size = structTypeInspector.GetMembersCount();
switch (GetNodeType(x)) {
case ENodeType::Dict: {
TUnboxedValue* items = nullptr;