rdblue commented on code in PR #8683:
URL: https://github.com/apache/iceberg/pull/8683#discussion_r1373910153


##########
format/spec.md:
##########
@@ -187,10 +189,11 @@ A **`map`** is a collection of key-value pairs with a key 
type and a value type.
 Notes:
 
 1. Decimal scale is fixed and cannot be changed by schema evolution. Precision 
can only be widened.
-2. All time and timestamp values are stored with microsecond precision.
-    - Timestamps _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).
-    - Timestamps _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`). Timestamp 
values are stored as a long that encodes microseconds from the unix epoch.
+2. `time`, `timestamp`, and `timestamptz` values are represented with 
_microsecond precision_. `timestamp_ns` and `timstamptz_ns` values are 
represented with _nanosecond precision_.
+    - 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).
+    - 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`).
 3. Character strings must be stored as UTF-8 encoded byte arrays.
+4. `timestamp_ns` and `timstamptz_ns` are only supported in v3 tables.

Review Comment:
   I think that this needs to be a column in the table rather than a footnote. 
It just isn't very obvious that you can't use the ns types in v2 otherwise. 
That's my only concern with this PR.



-- 
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