Copilot commented on code in PR #516:
URL: https://github.com/apache/arrow-dotnet/pull/516#discussion_r4729733308


##########
src/Apache.Arrow/Arrays/ArrayDataConcatenator.cs:
##########
@@ -1018,7 +1064,7 @@ private void ConcatenateLists(NestedType type)
                     children.Add(child);
                 }
 
-                ArrayData combinedChild = ConcatenateChildrenOrEmpty(children);
+                ArrayData combinedChild = ConcatenateChildrenOrEmpty(children, 
compareStructFieldNamesAndNullability: !(type is MapType));

Review Comment:
   Empty list inputs are filtered out before this call: combining an empty 
`list<struct<a: int>>` with a nonempty `list<struct<b: int>>` bypasses the new 
check and produces a result whose parent declares `a` but whose child declares 
`b`; all-empty mismatched lists also pass. The same gap affects large lists, 
list views, and structs inside map values. Validate nested struct compatibility 
before filtering empty parents, preserving the map-entry exemption, and add 
mixed-empty and all-empty regression cases.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to