ayushtkn commented on code in PR #6565:
URL: https://github.com/apache/hive/pull/6565#discussion_r3502745388


##########
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveSchemaUtil.java:
##########
@@ -429,6 +446,24 @@ public static void setDefaultValues(Record record, 
List<Types.NestedField> missi
     }
   }
 
+  /**
+   * Backfills struct column that is null on read using nested {@code 
initialDefault} metadata.
+   * This applies to rows written before {@code ADD COLUMNS} added the struct.
+   * Spec allows struct defaults as {@code {}} (see 
https://iceberg.apache.org/spec/#default-values), but
+   * {@code UpdateSchema} add column only supports primitives today;

Review Comment:
   > add column only supports primitives today;
   
   Whaat? Then how come we added struct column & the entire initialDefault 
initiative here?



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