The implementation of the java.sql.Timestamp causes some confusion today, because this class might contain a timezone (extends java.util.Date). The timezone is implicitly set in the udf client and depends of the timezone set on the DB node.
The Java 8 java.time.Instant and java.time.LocalDateTime come without a timezone and would match the Exasol DB TIMESTAMP type. java.time.ZonedDateTime would be the best match for Exasol DATE.
Background
The implementation of the
java.sql.Timestamp
causes some confusion today, because this class might contain a timezone (extends java.util.Date). The timezone is implicitly set in the udf client and depends of the timezone set on the DB node.The Java 8
java.time.Instant
andjava.time.LocalDateTime
come without a timezone and would match the Exasol DBTIMESTAMP
type.java.time.ZonedDateTime
would be the best match for ExasolDATE
.Acceptance Criteria
Investigate and implement support for
java.time.Instant
java.time.ZoneDateTime
java.time.LocalDateTime