Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private DataType extractFieldType(DebeziumEvent.Field field) {
if (StringUtils.isNullOrWhitespaceOnly(stringifyLength)) {
return DataTypes.BOOLEAN();
}
Integer length = Integer.valueOf(stringifyLength);
int length = Integer.parseInt(stringifyLength);
if (length == 1) {
return DataTypes.BOOLEAN();
} else {
Expand Down Expand Up @@ -295,7 +295,6 @@ else if (Date.SCHEMA_NAME.equals(className)) {
newValue = DateTimeUtils.toLocalDate(Integer.parseInt(oldValue)).toString();
} else if (Timestamp.SCHEMA_NAME.equals(className)) {
// timestamp (precision 0-3)

LocalDateTime localDateTime =
DateTimeUtils.toLocalDateTime(Long.parseLong(oldValue), ZoneOffset.UTC);
newValue = DateTimeUtils.formatLocalDateTime(localDateTime, 3);
Expand All @@ -314,7 +313,6 @@ else if (Date.SCHEMA_NAME.equals(className)) {
newValue = DateTimeUtils.formatLocalDateTime(localDateTime, 6);
} else if (ZonedTimestamp.SCHEMA_NAME.equals(className)) {
// timestamptz

LocalDateTime localDateTime =
Instant.parse(oldValue).atZone(serverTimeZone).toLocalDateTime();
newValue = DateTimeUtils.formatLocalDateTime(localDateTime, 6);
Expand Down
Loading