public static Object getTarget(Object obj, String targetType) {
        switch (targetType.toLowerCase(Locale.ENGLISH)) {

            case "smallint":
            case "smallintunsigned":
            case "tinyint":
            case "tinyintunsigned":
            case "mediumint":
            case "mediumintunsigned":
            case "integer":
            case "int":
                return MathUtil.getIntegerVal(obj);

            case "bigint":
            case "bigintunsigned":
            case "intunsigned":
            case "integerunsigned":
                return MathUtil.getLongVal(obj);

            case "boolean":
                return MathUtil.getBoolean(obj);

            case "blob":
                return MathUtil.getByte(obj);

            case "varchar":
            case "char":
            case "text":
                return MathUtil.getString(obj);

            case "real":
            case "float":
            case "realunsigned":
            case "floatunsigned":
                return MathUtil.getFloatVal(obj);

            case "double":
            case "doubleunsigned":
                return MathUtil.getDoubleVal(obj);

            case "decimal":
            case "decimalunsigned":
                return MathUtil.getBigDecimal(obj);

            case "date":
                return MathUtil.getDate(obj);

            case "timestamp":
            case "datetime":
                return MathUtil.getTimestamp(obj);
            default:
        }
        return obj;
    }
@description:
@program: flink.sql
@author: lany
@create: 2021/01/11 10:23
elasticsearch7/elasticsearch7-side/elasticsearch7-side-core/src/main/java/com/dtstack/flink/sql/side/elasticsearch7/util/Es7Util.java