DBZ-6387 Addding new isostring, microseconds, nanoseconds TemporalPrecisionModes#6002
Conversation
|
Hi @ismailsimsek. Thank you for your valuable contribution. |
e0028b1 to
e7418ee
Compare
|
Hi @ismailsimsek. Thank you for your valuable contribution. |
1621d23 to
77bee5c
Compare
...nnector-postgres/src/test/java/io/debezium/connector/postgresql/RecordsStreamProducerIT.java
Show resolved
Hide resolved
a2725c0 to
17a0802
Compare
...onnector-postgres/src/main/java/io/debezium/connector/postgresql/PostgresValueConverter.java
Outdated
Show resolved
Hide resolved
4a8988b to
607db6d
Compare
733e48f to
7bb4259
Compare
|
JDBC test failing with following error. i think, because its using old version of debezium (test-container) and trying to validate the new enum value. |
9f07312 to
b6e6ba3
Compare
isostring,microseconds,nanoseconds TemporalPrecisionModes
isostring,microseconds,nanoseconds TemporalPrecisionModes5bc2b7c to
69563df
Compare
69563df to
e0b7da6
Compare
|
@jpechane its ready for review. JDBC test failing, i think because its using old code with container. |
jpechane
left a comment
There was a problem hiding this comment.
@ismailsimsek I pushed some refactorings related to the schema building and I hope they work as intended. Also few more comments were added so please take a look. Thsi PR will be merged at the beginning of January into Debezium 3.1.
debezium-core/src/main/java/io/debezium/jdbc/JdbcValueConverters.java
Outdated
Show resolved
Hide resolved
debezium-core/src/test/java/io/debezium/jdbc/JdbcValueConvertersTemporalPrecisionTest.java
Outdated
Show resolved
Hide resolved
...gres/src/test/java/io/debezium/connector/postgresql/PostgresTemporalPrecisionHandlingIT.java
Outdated
Show resolved
Hide resolved
|
|
||
| assertEquals(after.get("c_id"), 2); | ||
| // '2017-09-15'::DATE | ||
| // assertEquals(after.get("c_date"), "2017-09-15Z"); |
There was a problem hiding this comment.
Makes sure no asserts are comented out.
There was a problem hiding this comment.
Added FIx for date conversion and activated this line.
debezium-core/src/main/java/io/debezium/jdbc/JdbcValueConverters.java
Outdated
Show resolved
Hide resolved
|
/packit test --labels oracle |
…es, apply code review suggestions and fix date conversion
| case NANOSECONDS: | ||
| case MICROSECONDS: |
There was a problem hiding this comment.
this was missing and catched by test. added them.
NANOSECONDS and MICROSECONDS will generate EpochDays for DATE values.
Thank you @jpechane applied suggestions and added a fix for DATE values. |
|
@ismailsimsek Applied, thanks! Could you please send a follw-up PR with doc updates? Thanks a lot |
Adding 3 new non adaptive temporal modes:
isostring: converts to UTC ISO 8601microseconds: converts to int64, always with microseconds precision mode. not adaptivenanoseconds: converts to int64, always with nanoseconds precision mode. not adaptiveImplements DBZ-6387
remaining todos
Requires debezium/debezium-connector-vitess#219