-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
status-information_neededAdditional information is required from the reporterAdditional information is required from the reporterstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team
Description
Java 8 time types are more modern and should be preferred over the old types Date, Time, etc.
java.time.LocalDatejava.time.LocalTimejava.time.LocalDateTimejava.time.OffsetDateTimejava.time.ZonedDateTimejava.time.Instant
The Snowflake documentation specifies:
Although Snowflake can store time values with nanosecond precision, the java.sql.time library maintains only millisecond precision. Conversion between Snowflake and Java data types can reduce effective precision to milliseconds.
This limitation is not present in the modern java.time types, and time zone information is explicit, rather than implicit and prone to error.
Note that proper implementation of this would not involve converting from the old Java types to the new ones, since that would not fix the issue described here.
Metadata
Metadata
Assignees
Labels
status-information_neededAdditional information is required from the reporterAdditional information is required from the reporterstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team