szehon-ho commented on code in PR #10981:
URL: https://github.com/apache/iceberg/pull/10981#discussion_r1765411351


##########
format/spec.md:
##########
@@ -200,12 +200,16 @@ Supported primitive types are defined in the table below. 
Primitive types added
 |                  | **`uuid`**         | Universally unique identifiers       
                                    | Should use 16-byte fixed                  
       |
 |                  | **`fixed(L)`**     | Fixed-length byte array of length L  
                                    |                                           
       |
 |                  | **`binary`**       | Arbitrary-length byte array          
                                    |                                           
       |
+| [v3](#version-3) | **`geometry(C, CE, E)`** | An object of the simple 
feature geometry model as defined by Appendix G; This may be any of the 
geometry subclasses defined therein; crs C [4], crs-encoding CE [5], edges E 
[6] | C, CE, E are fixed, and if unset will take default values. Encoded as 
WKB, see Appendix G. |
 
 Notes:
 
 1. Timestamp values _without time zone_ represent a date and time of day 
regardless of zone: the time value is independent of zone adjustments 
(`2017-11-16 17:10:34` is always retrieved as `2017-11-16 17:10:34`).
 2. Timestamp values _with time zone_ represent a point in time: values are 
stored as UTC and do not retain a source time zone (`2017-11-16 17:10:34 PST` 
is stored/retrieved as `2017-11-17 01:10:34 UTC` and these values are 
considered identical).
 3. Character strings must be stored as UTF-8 encoded byte arrays.
+4. Crs (coordinate reference system) is a mapping of how coordinates refer to 
precise locations on earth. Defaults to "OGC:CRS84". Fixed and cannot be 
changed by schema evolution.
+5. Crs-encoding (coordinate reference system encoding) is the type of crs 
field. Must be set if crs is set. Defaults to "PROJJSON". Fixed and cannot be 
changed by schema evolution.
+6. Edges is the interpretation for non-point geometries in geometry object, 
i.e. whether an edge between points represent a straight cartesian line or the 
shortest line on the sphere. Defaults to "planar". Fixed and cannot be changed 
by schema evolution.

Review Comment:
   @dmitrykoval i was debating this.  
   
   I guess we talked about it before, but the Java reference implementation, we 
cannot easily do pruning (file level, row level, or partition level) because 
the JTS library and the XZ2 only support non-spherical.  We would need new 
metrics types, new Java libraries , and new partition transform proposals if we 
wanted to support it in Java reference implementation.
   
   But if we want to support it, Im ok to list it here and have checks to just 
skip pruning for spherical geometry columns.  
   @flyrain @jiayuasu @Kontinuation does it make sense?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to