You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Abacn (via GitHub)" <gi...@apache.org> on 2023/03/14 18:53:50 UTC
[GitHub] [beam] Abacn commented on issue #21115: JdbcIO date conversion is sensitive to OS
Abacn commented on issue #21115:
URL: https://github.com/apache/beam/issues/21115#issuecomment-1468654350
DATE type is fixed by switching to use java.time.LocalDate object. However I realize `rs.getObject(i, java.time.LocalDate.class)` may not be supported,
https://github.com/apache/beam/blob/385d662a4e6000ba1315f7d14c5a699263d51a60/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/SchemaUtil.java#L315
depending on the jdbc driver used:
- derby (used in unit test), unsupported and get error `Caused by: java.sql.SQLFeatureNotSupportedException: The data type '0' is not supported`
- postgressql, supported
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org