This is an automated email from the ASF dual-hosted git repository.
kevinjqliu 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 d8170b0dfa Spec: Clarify decimal type serialization (#16798)
d8170b0dfa is described below
commit d8170b0dfae4ecc0716de8b823c5d0987fc21fa8
Author: Kevin Liu <[email protected]>
AuthorDate: Sat Aug 1 12:18:17 2026 -0400
Spec: Clarify decimal type serialization (#16798)
## Summary
- Clarify canonical schema JSON decimal type strings as `decimal(P, S)`,
[matching Java writer
output](https://github.com/apache/iceberg/blob/51ee2cc0d993fe58de21b76613f350da97e9d3ef/api/src/main/java/org/apache/iceberg/types/Types.java#L548-L550)
via
[`DecimalType.toString()`](https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/types/Types.java#L548-L550).
- Document reader tolerance for optional whitespace in parameterized type
strings, matching Java parser behavior.
## Testing
- `git diff --check`
---
format/spec.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/format/spec.md b/format/spec.md
index 42be123524..3492de72a8 100644
--- a/format/spec.md
+++ b/format/spec.md
@@ -1690,6 +1690,8 @@ Types are serialized according to this table:
| **`geometry(C)`** |`JSON string: "geometry(<C>)"`|`"geometry(srid:4326)"`|
| **`geography(C, A)`** |`JSON string: "geography(<C>,
<A>)"`|`"geography(srid:4326, spherical)"`|
+The schema JSON type strings in this table are the canonical serialized forms.
Readers should accept optional whitespace around parameters and separators in
parameterized type strings.
+
Note that default values are serialized using the JSON single-value
serialization in [Appendix D](#appendix-d-single-value-serialization).
### Partition Specs