[Bugfix](Jdbc Catalog) fix data type mapping of SQLServer Catalog (#19525)

We map `money/smallmoney` types of SQLSERVER into decimal type of doris.
This commit is contained in:
Tiewei Fang
2023-05-17 21:02:42 +08:00
committed by GitHub
parent 30c4f25cb3
commit 1eb929e1ca
4 changed files with 13 additions and 7 deletions

View File

@ -798,9 +798,11 @@ public class JdbcClient {
case "real":
return Type.FLOAT;
case "float":
case "money":
case "smallmoney":
return Type.DOUBLE;
case "money":
return ScalarType.createDecimalV3Type(19, 4);
case "smallmoney":
return ScalarType.createDecimalV3Type(10, 4);
case "decimal":
case "numeric":
int precision = fieldSchema.getColumnSize();