Abacn commented on code in PR #22738:
URL: https://github.com/apache/beam/pull/22738#discussion_r947163602
##########
sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/SchemaUtil.java:
##########
@@ -313,11 +311,11 @@ private static <InputT, BaseT> ResultSetFieldExtractor
createLogicalTypeExtracto
/** Convert SQL date type to Beam DateTime. */
private static ResultSetFieldExtractor createDateExtractor() {
return (rs, i) -> {
- Date date = rs.getDate(i,
Calendar.getInstance(TimeZone.getTimeZone(ZoneOffset.UTC)));
+ java.time.LocalDate date = rs.getObject(i, java.time.LocalDate.class);
Review Comment:
Unfortunately there is import of `org.joda.time.LocalDate` and used
everywhere. There is an issue #19215 to eliminate joda.time in release 3.0.0
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]