You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by sz...@apache.org on 2025/03/01 21:40:57 UTC
(iceberg) branch main updated: Spec: Fix geo type example (#12421)
This is an automated email from the ASF dual-hosted git repository.
szehon 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 978430823c Spec: Fix geo type example (#12421)
978430823c is described below
commit 978430823ca0cd823544e668e12f84ce91551cbd
Author: Jia Yu <ji...@wherobots.com>
AuthorDate: Sat Mar 1 13:40:51 2025 -0800
Spec: Fix geo type example (#12421)
---
format/spec.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/format/spec.md b/format/spec.md
index 9f3d3e4e08..209a4bc077 100644
--- a/format/spec.md
+++ b/format/spec.md
@@ -1395,8 +1395,8 @@ Types are serialized according to this table:
|**`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": [...]
| **`variant`**| `JSON string: "variant"`|`"variant"`|
-| **`geometry(C)`** | `JSON object: {`<br /> `"type": "geometry",`<br /> `"crs": <C>`<br />`}` | `{`<br /> `"type": "geometry",`<br /> `"crs": "OGC:CRS84"`<br />`}` |
-| **`geography(C, A)`** | `JSON object: {`<br /> `"type": "geography",`<br /> `"crs": <C>,`<br /> `"algorithm": <A>`<br />}` | `{`<br /> `"type": "geography",`<br /> `"crs": "OGC:CRS84",`<br /> `"algorithm": "spherical"` <br /> `}` |
+| **`geometry(C)`** | `JSON object: {`<br /> `"type": "geometry",`<br /> `"crs": <C>`<br />`}` | `{`<br /> `"type": "geometry",`<br /> `"crs": "srid:4326"`<br />`}` |
+| **`geography(C, A)`** | `JSON object: {`<br /> `"type": "geography",`<br /> `"crs": <C>,`<br /> `"algorithm": <A>`<br />}` | `{`<br /> `"type": "geography",`<br /> `"crs": "srid:4326",`<br /> `"algorithm": "spherical"` <br /> `}` |
Note that default values are serialized using the JSON single-value serialization in [Appendix D](#appendix-d-single-value-serialization).