!75 issues-I4IJ6V: Hive的Double转换其他数据库类型数据过长问题

* issues-I4IJ6V: Hive的Double类型转换其他数据库类型数据过长问题
This commit is contained in:
inrgihc
2022-02-10 14:52:29 +00:00
parent 8362a8d305
commit e691159876

View File

@@ -356,6 +356,14 @@ public class ColumnMetaData {
}
}
// If we're dealing with Hive and double precision types
if (desc.getDbType() == DatabaseTypeEnum.HIVE && type == java.sql.Types.DOUBLE
&& precision >= 15
&& length >= 15) {
precision = 6;
length = 25;
}
// if the length or precision needs a BIGNUMBER
//if (length > 15 || precision > 15) {
// valtype = ColumnMetaData.TYPE_BIGNUMBER;