Skip to content

Commit

Permalink
[fix] Fix the bug that the DorisTypeMapper datetime type will lose …
Browse files Browse the repository at this point in the history
…precision when converted to flink type (#379)
  • Loading branch information
huyuanfeng2018 authored May 10, 2024
1 parent ca358a8 commit 3b5d4ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static DataType toFlinkType(
return DataTypes.DATE();
case DATETIME:
case DATETIME_V2:
return DataTypes.TIMESTAMP(0);
return DataTypes.TIMESTAMP(scale);
default:
throw new UnsupportedOperationException(
String.format(
Expand Down

0 comments on commit 3b5d4ed

Please sign in to comment.