-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature][Connectors-v2-Paimon] Support Date&Time Data Type To Be Flink Int #6076
base: dev
Are you sure you want to change the base?
[Feature][Connectors-v2-Paimon] Support Date&Time Data Type To Be Flink Int #6076
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.
@TyrantLucifer PTAL.
...l-e2e/seatunnel-connector-v2-e2e/connector-paimon-e2e/src/test/resources/fake_to_paimon.conf
Show resolved
Hide resolved
@TyrantLucifer PTAL,thanks. |
@Carl-Zhou-CN PTAL. |
break; | ||
case TIME: | ||
LocalTime time = (LocalTime) seaTunnelRow.getField(i); | ||
String timeStr = time.format(DateTimeFormatter.ofPattern("HH:mm:ss")); |
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.
Do we need to support milliseconds?
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.
Similar to DATA
LocalTime time = LocalTime.of(0, 0, 0); | ||
binaryWriter.writeTimestamp( | ||
i, Timestamp.fromLocalDateTime(date.atTime(time)), 3); | ||
String dateStr = date.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); |
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.
Wouldn't it be more convenient to directly obtain the number of days from LocalDate?
Purpose of this pull request
Implement Feature #6075
Does this PR introduce any user-facing change?
without
How was this patch tested?
e2e tests and unit test cases have been perfected
Check list
New License Guide
release-note
.