Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zy-kkk committed Nov 26, 2024
1 parent 3deca38 commit 129cad7
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@

public class JdbcPostgreSQLClient extends JdbcClient {

private static final String[] supportedInnerType = new String[] {
"int2", "int4", "int8", "smallserial", "serial",
"bigserial", "float4", "float8", "timestamp", "timestamptz",
"date", "bool", "bpchar", "varchar", "text"
};

protected JdbcPostgreSQLClient(JdbcClientConfig jdbcClientConfig) {
super(jdbcClientConfig);
}
Expand Down Expand Up @@ -168,11 +174,6 @@ private Type convertArrayType(JdbcFieldSchema fieldSchema) {
}

String innerType = fieldSchema.getDataTypeName().orElse("unknown").substring(1);
String[] supportedInnerType = new String[] {
"int2", "int4", "int8", "smallserial", "serial",
"bigserial", "float4", "float8", "timestamp", "timestamptz",
"date", "bool", "bpchar", "varchar", "text"
};

boolean isSupported = Arrays.asList(supportedInnerType).contains(innerType);
if (!isSupported) {
Expand Down

0 comments on commit 129cad7

Please sign in to comment.