Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent the potential for a panic in the string_to_timestamp coercions
The original code was turning nanos into micros anyways, so we can use the more safe timestamp_micros() code. For timestamp_nanos_opt() it can return None if the dates that cannot be represented as nanoseconds between 1677-09-21T00:12:43.145224192 and 2262-04-11T23:47:16.854775807. Signed-off-by: R. Tyler Croy <rtyler@brokenco.de>
- Loading branch information