Browse Source

YQL-17296 [lineage] fix for Member

vvvv 1 year ago
parent
commit
61b9a129e0
1 changed files with 6 additions and 4 deletions
  1. 6 4
      ydb/library/yql/core/services/yql_lineage.cpp

+ 6 - 4
ydb/library/yql/core/services/yql_lineage.cpp

@@ -269,13 +269,15 @@ private:
             }
 
             auto inner = ScanExprLineage(node.Head(), arg, src, visited);
-            if (!inner || !inner->StructItems) {
+            if (!inner) {
                 return Nothing();
             }
 
-            TFieldsLineage result; 
-            result.Items = *(*inner->StructItems).FindPtr(node.Tail().Content());
-            return it->second = result;
+            if (inner->StructItems) {
+                TFieldsLineage result; 
+                result.Items = *(*inner->StructItems).FindPtr(node.Tail().Content());
+                return it->second = result;
+            }
         }
 
         if (node.IsCallable("SqlIn")) {