Skip to content

Commit 90c187a

Browse files
committed
支持磐维数据库 (opengauss) 的 tinyint 数据类型,由于 column_size 非常大,只能转化为 varchar,无法简单转化为 smallint,jdbc 取得的数据类型信息为:
1 parent a2395ed commit 90c187a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fe/fe-core/src/main/java/com/starrocks/connector/jdbc/PostgresSchemaResolver.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public Type convertColumnType(int dataType, String typeName, int columnSize, int
9090
case Types.BIT:
9191
primitiveType = PrimitiveType.BOOLEAN;
9292
break;
93+
// Panwei 数据类型 TINYINT,type=1111
94+
case 1111:
95+
return ScalarType.createVarcharType(ScalarType.getOlapMaxVarcharLength());
9396
case Types.SMALLINT:
9497
primitiveType = PrimitiveType.SMALLINT;
9598
break;

0 commit comments

Comments
 (0)