You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Support Java 8 java.time types
SNOW-1723202: Support Java 8 java.time types
Oct 5, 2024
Java 8 time types are more modern and should be preferred over the old types
Date
,Time
, etc.java.time.LocalDate
java.time.LocalTime
java.time.LocalDateTime
java.time.OffsetDateTime
java.time.ZonedDateTime
java.time.Instant
The Snowflake documentation specifies:
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.
The text was updated successfully, but these errors were encountered: