You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/converter/JdbcTypeConverter.java
+16-2
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ public static class JdbcTypeBean {
40
40
/** Scale. For example: 2 in decimal (10,2). */
41
41
privateIntegerscale;
42
42
43
+
privateIntegerdatetimePrecision;
44
+
43
45
publicJdbcTypeBean(StringtypeName) {
44
46
this.typeName = typeName;
45
47
}
@@ -68,19 +70,28 @@ public void setScale(Integer scale) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/operation/JdbcTableOperations.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/main/java/org/apache/gravitino/catalog/mysql/converter/MysqlColumnDefaultValueConverter.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,8 @@ public Expression toGravitino(
49
49
}
50
50
51
51
if (isExpression) {
52
-
if (columnDefaultValue.equals(CURRENT_TIMESTAMP)) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/main/java/org/apache/gravitino/catalog/mysql/converter/MysqlTypeConverter.java
+11-4
Original file line number
Diff line number
Diff line change
@@ -72,15 +72,18 @@ public Type toGravitino(JdbcTypeBean typeBean) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/main/java/org/apache/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/converter/TestMysqlTypeConverter.java
+36-18
Original file line number
Diff line number
Diff line change
@@ -47,22 +47,34 @@ public class TestMysqlTypeConverter {
0 commit comments