[feature](jdbc) Support jdbc catalog to read json types (#21341)

This commit is contained in:
zy-kkk
2023-07-10 16:21:00 +08:00
committed by GitHub
parent 1a08c81adc
commit 0be349e250
15 changed files with 1242 additions and 1062 deletions

View File

@ -313,6 +313,8 @@ public class JdbcMySQLClient extends JdbcClient {
} else {
return ScalarType.createStringType();
}
case "JSON":
return ScalarType.createJsonbType();
case "TIME":
case "TINYTEXT":
case "TEXT":
@ -326,7 +328,6 @@ public class JdbcMySQLClient extends JdbcClient {
case "STRING":
case "MEDIUMSTRING":
case "LONGSTRING":
case "JSON":
case "SET":
case "BINARY":
case "VARBINARY":

View File

@ -99,10 +99,12 @@ public class JdbcPostgreSQLClient extends JdbcClient {
case "inet":
case "macaddr":
case "varbit":
case "jsonb":
case "uuid":
case "bytea":
return ScalarType.createStringType();
case "json":
case "jsonb":
return ScalarType.createJsonbType();
default:
return Type.UNSUPPORTED;
}