This is an automated email from the ASF dual-hosted git repository.
fokko 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 2289758dc9 spec: Fix formatting of Default values (#10525)
2289758dc9 is described below
commit 2289758dc9c1ba75c04be084c1b66884e70c8af9
Author: Fokko Driesprong <[email protected]>
AuthorDate: Tue Jun 18 09:16:20 2024 +0200
spec: Fix formatting of Default values (#10525)
---
format/spec.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/format/spec.md b/format/spec.md
index 6e23b2c583..e590a8b951 100644
--- a/format/spec.md
+++ b/format/spec.md
@@ -201,8 +201,9 @@ For details on how to serialize a schema to JSON, see
Appendix C.
#### Default values
Default values can be tracked for struct fields (both nested structs and the
top-level schema's struct). There can be two defaults with a field:
-- `initial-default` is used to populate the field's value for all records that
were written before the field was added to the schema
-- `write-default` is used to populate the field's value for any records
written after the field was added to the schema, if the writer does not supply
the field's value
+
+* `initial-default` is used to populate the field's value for all records that
were written before the field was added to the schema
+* `write-default` is used to populate the field's value for any records
written after the field was added to the schema, if the writer does not supply
the field's value
The `initial-default` is set only when a field is added to an existing schema.
The `write-default` is initially set to the same value as `initial-default` and
can be changed through schema evolution. If either default is not set for an
optional field, then the default value is null for compatibility with older
spec versions.