You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ke...@apache.org on 2026/09/21 18:59:33 UTC
(iceberg) branch main updated: Spec: Align the decimal type string with the canonical form (#18145)
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 b5f3639322 Spec: Align the decimal type string with the canonical form (#18145)
b5f3639322 is described below
commit b5f36393227382296e28568306aa88eb570171b7
Author: Noritaka Sekiyama <no...@databricks.com>
AuthorDate: Tue Sep 22 03:59:25 2026 +0900
Spec: Align the decimal type string with the canonical form (#18145)
#16798 added the sentence that the type strings in Appendix C's table are the
canonical serialized forms, but left the decimal row itself unchanged: the
template still omitted the separator space and the examples showed both
spacings. Java's DecimalType.toString() writes the spaced form, as does
PyIceberg, and #16799 already made this change for geography.
---
format/spec.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/format/spec.md b/format/spec.md
index c056ce3fe2..e6f9e0425b 100644
--- a/format/spec.md
+++ b/format/spec.md
@@ -1684,7 +1684,7 @@ Types are serialized according to this table:
|**`uuid`**|`JSON string: "uuid"`|`"uuid"`|
|**`fixed(L)`**|`JSON string: "fixed[<L>]"`|`"fixed[16]"`|
|**`binary`**|`JSON string: "binary"`|`"binary"`|
-|**`decimal(P, S)`**|`JSON string: "decimal(<P>,<S>)"`|`"decimal(9,2)"`,<br />`"decimal(9, 2)"`|
+|**`decimal(P, S)`**|`JSON string: "decimal(<P>, <S>)"`|`"decimal(9, 2)"`|
|**`struct`**|`JSON object: {`<br /> `"type": "struct",`<br /> `"fields": [ {`<br /> `"id": <field id int>,`<br /> `"name": <name string>,`<br /> `"required": <boolean>,`<br /> `"type": <type JSON>,`<br /> `"doc": <comment string>,`<br /> `"initial-default": <JSON encoding of default value>,`<br /> `"write-d [...]
|**`list`**|`JSON object: {`<br /> `"type": "list",`<br /> `"element-id": <id int>,`<br /> `"element-required": <bool>`<br /> `"element": <type JSON>`<br />`}`|`{`<br /> `"type": "list",`<br /> `"element-id": 3,`<br /> `"element-required": true,`<br /> `"element": "string"`<br />`}`|
|**`map`**|`JSON object: {`<br /> `"type": "map",`<br /> `"key-id": <key id int>,`<br /> `"key": <type JSON>,`<br /> `"value-id": <val id int>,`<br /> `"value-required": <bool>`<br /> `"value": <type JSON>`<br />`}`|`{`<br /> `"type": "map",`<br /> `"key-id": 4,`<br /> `"key": "string",`<br /> `"value-id": 5,`<br /> `"value-required": false,`<br /> `"value": [...]