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


##########
format/spec.md:
##########
@@ -971,8 +985,10 @@ The 32-bit hash implementation is 32-bit Murmur3 hash, x86 
variant, seeded with
 | **`decimal(P,S)`** | `hashBytes(minBigEndian(unscaled(v)))`[2] | `14.20` → 
`-500754589`                     |
 | **`date`**         | `hashInt(daysFromUnixEpoch(v))`           | 
`2017-11-16` → `-653330422`                |
 | **`time`**         | `hashLong(microsecsFromMidnight(v))`      | `22:31:08` 
→ `-662762989`                  |
-| **`timestamp`**    | `hashLong(microsecsFromUnixEpoch(v))`     | 
`2017-11-16T22:31:08` → `-2047944441`      |
-| **`timestamptz`**  | `hashLong(microsecsFromUnixEpoch(v))`     | 
`2017-11-16T14:31:08-08:00`→ `-2047944441` |
+| **`timestamp`**    | `hashLong(microsecsFromUnixEpoch(v))`     | 
`2017-11-16T22:31:08` → `-2047944441`<br />`2017-11-16T22:31:08.000001` → 
`-1207196810` |
+| **`timestamptz`**  | `hashLong(microsecsFromUnixEpoch(v))`     | 
`2017-11-16T14:31:08-08:00` → `-2047944441`<br 
/>`2017-11-16T14:31:08.000001-08:00` → `-1207196810` |
+| **`timestamp_ns`** | `hashLong(nanosecsFromUnixEpoch(v))`      | 
`2017-11-16T22:31:08` → `-737750069`<br />`2017-11-16T22:31:08.000001` → 
`-976603392`<br />`2017-11-16T22:31:08.000000001` → `-160215926` |
+| **`timestamptz_ns`** | `hashLong(nanosecsFromUnixEpoch(v))`    | 
`2017-11-16T14:31:08-08:00` → `-737750069`<br 
/>`2017-11-16T14:31:08.000001-08:00` → `-976603392`<br 
/>`2017-11-16T14:31:08.000000001-08:00` → `-160215926` |

Review Comment:
   Can you please add tests for these cases? We need to make sure that the 
actual code produces the given values.



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