-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[FLINK-38079] Add Pipeline support for DateType and TimeType #4060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for @proletarians' nice work, just left some trivial comments.
flink-cdc-common/src/main/java/org/apache/flink/cdc/common/utils/SchemaMergingUtils.java
Outdated
Show resolved
Hide resolved
...composer/src/test/java/org/apache/flink/cdc/composer/flink/FlinkPipelineTransformITCase.java
Outdated
Show resolved
Hide resolved
...r-mysql/src/test/java/org/apache/flink/cdc/connectors/mysql/source/MySqlFullTypesITCase.java
Outdated
Show resolved
Hide resolved
...ezium/src/main/java/org/apache/flink/cdc/debezium/event/DebeziumSchemaDataTypeInference.java
Outdated
Show resolved
Hide resolved
...-runtime/src/main/java/org/apache/flink/cdc/runtime/serializer/data/writer/BinaryWriter.java
Show resolved
Hide resolved
5a2b834
to
aa96a77
Compare
aa96a77
to
ec18cde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DebeziumEventDeserializationSchema#convertToTime
Should we also change the implementation of this class etc?
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I let some comment.
...um/src/main/java/org/apache/flink/cdc/debezium/event/DebeziumEventDeserializationSchema.java
Outdated
Show resolved
Hide resolved
...um/src/main/java/org/apache/flink/cdc/debezium/event/DebeziumEventDeserializationSchema.java
Outdated
Show resolved
Hide resolved
5520dd6
to
2dd4f32
Compare
flink-cdc-common/src/main/java/org/apache/flink/cdc/common/data/TimeData.java
Show resolved
Hide resolved
LGTM |
# Conflicts: # flink-cdc-composer/src/test/java/org/apache/flink/cdc/composer/flink/FlinkPipelineTransformITCase.java # flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-iceberg/src/test/java/org/apache/flink/cdc/connectors/iceberg/sink/v2/IcebergWriterTest.java
Signed-off-by: yuxiqian <[email protected]>
Signed-off-by: yuxiqian <[email protected]>
Signed-off-by: yuxiqian <[email protected]>
Signed-off-by: yuxiqian <[email protected]>
Signed-off-by: yuxiqian <[email protected]>
2dd4f32
to
a36cf5d
Compare
Signed-off-by: yuxiqian <[email protected]>
Just reverted an accidental change that breaks Postgres Pipeline CI, PTAL @lvyanquan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thanks to all involved.
Pipeline currently treats DateType and TimeType as plain INT, so date/time columns lose precision (TIME only to milliseconds, DATE range limited) and cannot be used with built-in temporal functions.