advancedxy commented on code in PR #2635:
URL: https://github.com/apache/iceberg-rust/pull/2635#discussion_r3417672523


##########
crates/iceberg/src/arrow/value.rs:
##########
@@ -628,23 +627,25 @@ pub(crate) fn create_primitive_array_single_element(
     data_type: &DataType,
     prim_lit: &Option<PrimitiveLiteral>,
 ) -> Result<ArrayRef> {
+    // With no value, the single element is NULL. `new_null_array` supports 
every
+    // Arrow type, including nested ones (list/map/struct), which matters for
+    // columns added by schema evolution after a data file was written (#2618).
+    if prim_lit.is_none() {

Review Comment:
   > Given that, I'd prefer to keep this PR as the focused 
wraparound/nested-NULL fix and do the rename + Literal widening + V3 default 
support together in the follow-up
   
   Agreed. Let's merge this first.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to