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
[#5784] improvement(catalog) Modify the ColumnSize/Scale of JdbcTypeBean to be of type integer. (#5788)
### What changes were proposed in this pull request?
Modify the ColumnSize/Scale of JdbcTypeBean to be of type integer.
### Why are the changes needed?
Fix: #5784
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/converter/JdbcTypeConverter.java
+6-6
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,10 @@ public static class JdbcTypeBean {
35
35
privateStringtypeName;
36
36
37
37
/** Column size. For example: 20 in varchar (20) and 10 in decimal (10,2). */
38
-
privateStringcolumnSize;
38
+
privateIntegercolumnSize;
39
39
40
40
/** Scale. For example: 2 in decimal (10,2). */
41
-
privateStringscale;
41
+
privateIntegerscale;
42
42
43
43
publicJdbcTypeBean(StringtypeName) {
44
44
this.typeName = typeName;
@@ -52,19 +52,19 @@ public void setTypeName(String typeName) {
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-doris/src/main/java/org/apache/gravitino/catalog/doris/converter/DorisColumnDefaultValueConverter.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-doris/src/main/java/org/apache/gravitino/catalog/doris/converter/DorisTypeConverter.java
+3-4
Original file line number
Diff line number
Diff line change
@@ -54,16 +54,15 @@ public Type toGravitino(JdbcTypeBean typeBean) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-doris/src/main/java/org/apache/gravitino/catalog/doris/operation/DorisTablePartitionOperations.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/main/java/org/apache/gravitino/catalog/mysql/converter/MysqlColumnDefaultValueConverter.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/main/java/org/apache/gravitino/catalog/mysql/converter/MysqlTypeConverter.java
+3-4
Original file line number
Diff line number
Diff line change
@@ -76,12 +76,11 @@ public Type toGravitino(JdbcTypeBean typeBean) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/converter/TestMysqlTypeConverter.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,9 @@ public void testToGravitinoType() {
56
56
checkJdbcTypeToGravitinoType(Types.TimeType.get(), TIME, null, null);
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-oceanbase/src/main/java/org/apache/gravitino/catalog/oceanbase/converter/OceanBaseColumnDefaultValueConverter.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-oceanbase/src/main/java/org/apache/gravitino/catalog/oceanbase/converter/OceanBaseTypeConverter.java
+3-4
Original file line number
Diff line number
Diff line change
@@ -76,12 +76,11 @@ public Type toGravitino(JdbcTypeBean typeBean) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-oceanbase/src/test/java/org/apache/gravitino/catalog/oceanbase/converter/TestOceanBaseTypeConverter.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,9 @@ public void testToGravitinoType() {
59
59
checkJdbcTypeToGravitinoType(Types.TimeType.get(), TIME, null, null);
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-postgresql/src/main/java/org/apache/gravitino/catalog/postgresql/converter/PostgreSqlColumnDefaultValueConverter.java
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-postgresql/src/main/java/org/apache/gravitino/catalog/postgresql/converter/PostgreSqlTypeConverter.java
+3-4
Original file line number
Diff line number
Diff line change
@@ -69,12 +69,11 @@ public Type toGravitino(JdbcTypeBean typeBean) {
Copy file name to clipboardexpand all lines: catalogs/catalog-jdbc-postgresql/src/test/java/org/apache/gravitino/catalog/postgresql/converter/TestPostgreSqlTypeConverter.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,9 @@ public void testToGravitinoType() {
0 commit comments