JdbcSourceOperations
method setJsonField
misses a branch for TIMESTAMP_WITH_TIMEZONE
#16838
Labels
area/databases
connectors/source/mssql
connectors/source/mysql
connectors/source/postgres
team/db-dw-sources
Backlog for Database and Data Warehouse Sources team
type/bug
Something isn't working
Current Behavior
TIMESTAMP_WITH_TIMEZONE
is not handled byJdbcSourceOperations#setJsonField
. This time falls under the default branch, and the output is not the same as what we want (e.g. it does not have microsecond precision).3.13.9
to3.13.22
, the timestamp with timezone column type from JDBC changed fromtimestamp
totimestamp with timezone
. The hypothesis is that the old version of the Snowflake JDBC is not returning thetimestamp
column type correctly. But it is unclear which version fixed this behavior according to the Snowflake JDBC changelog.JdbcSourceOperations
is processingtimestamp with timezone
with the default branch, the output changed from2018-03-22T07:00:00.123000Z
to2018-03-22 12:00:00.123 +0500
.setJsonField
method inSnowflakeSourceOperations
, and handle both types with theputTimestamp
method, which works for timestamp:time with timestamp
as well, because that is also a standard JDBC type, and currently it falls under the default branch.Expected Behavior
timestamp with timezone
type should be handled correctly for all JDBC sources.The text was updated successfully, but these errors were encountered: