Skip to content

Commit

Permalink
fix timestamp type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoukangcn committed Mar 15, 2024
1 parent 0942b04 commit d146085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Type toGravitinoType(JdbcTypeBean typeBean) {
case DATE:
return Types.DateType.get();
case DATETIME:
return Types.TimeType.get();
return Types.TimestampType.withTimeZone();
case CHAR:
return Types.FixedCharType.of(Integer.parseInt(typeBean.getColumnSize()));
case VARCHAR:
Expand Down Expand Up @@ -83,7 +83,7 @@ public String fromGravitinoType(Type type) {
+ ")";
} else if (type instanceof Types.DateType) {
return DATE;
} else if (type instanceof Types.TimeType) {
} else if (type instanceof Types.TimestampType) {
return DATETIME;
} else if (type instanceof Types.VarCharType) {
return VARCHAR + "(" + ((Types.VarCharType) type).length() + ")";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public String generateCreateDatabaseSql(
String databaseName, String comment, Map<String, String> properties) {
if (StringUtils.isNotEmpty(comment)) {
LOG.warn(
"Ignoring comment option on database create. doris does not support comment option on database create.");
"Ignoring comment option on database create. Doris does not support comment option on database create.");
}
StringBuilder sqlBuilder = new StringBuilder("CREATE DATABASE ");

Expand Down

0 comments on commit d146085

Please sign in to comment.