This is an automated email from the ASF dual-hosted git repository.
amoghj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new 3c8e046978 Spec: Fix markdown for struct evolution default value rules
(#10290)
3c8e046978 is described below
commit 3c8e046978b1cc27080ff8fc1d626cdc92066562
Author: Dustin Metzgar <[email protected]>
AuthorDate: Thu May 9 17:11:54 2024 -0700
Spec: Fix markdown for struct evolution default value rules (#10290)
---
format/spec.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/format/spec.md b/format/spec.md
index b00c63256a..6e23b2c583 100644
--- a/format/spec.md
+++ b/format/spec.md
@@ -228,6 +228,7 @@ Any struct, including a top-level schema, can evolve
through deleting fields, ad
Grouping a subset of a struct’s fields into a nested struct is **not**
allowed, nor is moving fields from a nested struct into its immediate parent
struct (`struct<a, b, c> ↔ struct<a, struct<b, c>>`). Evolving primitive types
to structs is **not** allowed, nor is evolving a single-field struct to a
primitive (`map<string, int> ↔ map<string, struct<int>>`).
Struct evolution requires the following rules for default values:
+
* The `initial-default` must be set when a field is added and cannot change
* The `write-default` must be set when a field is added and may change
* When a required field is added, both defaults must be set to a non-null value