mirror of
https://gitee.com/dromara/dbswitch.git
synced 2026-01-13 06:04:44 +08:00
!75 issues-I4IJ6V: Hive的Double转换其他数据库类型数据过长问题
* issues-I4IJ6V: Hive的Double类型转换其他数据库类型数据过长问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user