laskoviymishka commented on code in PR #779:
URL: https://github.com/apache/iceberg-go/pull/779#discussion_r2929768907


##########
table/arrow_utils.go:
##########
@@ -832,7 +872,12 @@ func (a *arrowProjectionVisitor) Struct(st 
iceberg.StructType, structArr arrow.A
                } else if !field.Required {
                        dt := retOrPanic(TypeToArrowType(field.Type, false, 
a.useLargeTypes))
 
-                       arr = 
array.MakeArrayOfNull(compute.GetAllocator(a.ctx), dt, structArr.Len())
+                       if field.WriteDefault != nil {

Review Comment:
   initial-default and write-default are typically the same value when a field 
is first added. They only diverge if the default is changed after the fact 
(which the spec allows). So for most real  data today the bug would be 
invisible — but it's still a spec violation and will bite cross-client 
scenarios where they've diverged.



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