@Override
    public BasicTypeDefine reconvert(Column column) {
        BasicTypeDefine.BasicTypeDefineBuilder builder =
                BasicTypeDefine.builder()
                        .name(column.getName())
                        .precision(column.getColumnLength())
                        .length(column.getColumnLength())
                        .nullable(column.isNullable())
                        .comment(column.getComment())
                        .scale(column.getScale())
                        .defaultValue(column.getDefaultValue());
        switch (column.getDataType().getSqlType()) {
            case NULL:
                builder.columnType(IRIS_NULL);
                builder.dataType(IRIS_NULL);
                break;
            case STRING:
                if (column.getColumnLength() == null || column.getColumnLength() <= 0) {
                    builder.columnType(String.format("%s(%s)", IRIS_VARCHAR, MAX_VARCHAR_LENGTH));
                    builder.dataType(IRIS_VARCHAR);
                } else if (column.getColumnLength() < MAX_VARCHAR_LENGTH) {
                    builder.columnType(
                            String.format("%s(%s)", IRIS_VARCHAR, column.getColumnLength()));
                    builder.dataType(IRIS_VARCHAR);
                } else {
                    builder.columnType(IRIS_LONG_VARCHAR);
                    builder.dataType(IRIS_LONG_VARCHAR);
                }
                break;
            case BOOLEAN:
                builder.columnType(IRIS_BIT);
                builder.dataType(IRIS_BIT);
                break;
            case TINYINT:
                builder.columnType(IRIS_TINYINT);
                builder.dataType(IRIS_TINYINT);
                break;
            case SMALLINT:
                builder.columnType(IRIS_SMALLINT);
                builder.dataType(IRIS_SMALLINT);
                break;
            case INT:
                builder.columnType(IRIS_INTEGER);
                builder.dataType(IRIS_INTEGER);
                break;
            case BIGINT:
                builder.columnType(IRIS_BIGINT);
                builder.dataType(IRIS_BIGINT);
                break;
            case FLOAT:
                builder.columnType(IRIS_FLOAT);
                builder.dataType(IRIS_FLOAT);
                break;
            case DOUBLE:
                builder.columnType(IRIS_DOUBLE);
                builder.dataType(IRIS_DOUBLE);
                break;
            case DECIMAL:
                DecimalType decimalType = (DecimalType) column.getDataType();
                long precision = decimalType.getPrecision();
                int scale = decimalType.getScale();
                if (scale < 0) {
                    scale = 0;
                    log.warn(
                            "The decimal column {} type decimal({},{}) is out of range, "
                                    + "which is scale less than 0, "
                                    + "it will be converted to decimal({},{})",
                            column.getName(),
                            decimalType.getPrecision(),
                            decimalType.getScale(),
                            precision,
                            scale);
                } else if (scale > MAX_SCALE) {
                    scale = MAX_SCALE;
                    log.warn(
                            "The decimal column {} type decimal({},{}) is out of range, "
                                    + "which exceeds the maximum scale of {}, "
                                    + "it will be converted to decimal({},{})",
                            column.getName(),
                            decimalType.getPrecision(),
                            decimalType.getScale(),
                            MAX_SCALE,
                            precision,
                            scale);
                }
                if (precision < scale) {
                    precision = scale;
                }
                if (precision <= 0) {
                    precision = DEFAULT_PRECISION;
                    scale = DEFAULT_SCALE;
                    log.warn(
                            "The decimal column {} type decimal({},{}) is out of range, "
                                    + "which is precision less than 0, "
                                    + "it will be converted to decimal({},{})",
                            column.getName(),
                            decimalType.getPrecision(),
                            decimalType.getScale(),
                            precision,
                            scale);
                } else if (precision > MAX_PRECISION) {
                    scale = MAX_SCALE;
                    precision = MAX_PRECISION;
                    log.warn(
                            "The decimal column {} type decimal({},{}) is out of range, "
                                    + "which exceeds the maximum precision of {}, "
                                    + "it will be converted to decimal({},{})",
                            column.getName(),
                            decimalType.getPrecision(),
                            decimalType.getScale(),
                            MAX_PRECISION,
                            precision,
                            scale);
                }
                builder.columnType(String.format("%s(%s,%s)", IRIS_DECIMAL, precision, scale));
                builder.dataType(IRIS_DECIMAL);
                builder.precision(precision);
                builder.scale(scale);
                break;
            case BYTES:
                if (column.getColumnLength() == null || column.getColumnLength() <= 0) {
                    builder.columnType(IRIS_LONG_BINARY);
                    builder.dataType(IRIS_LONG_BINARY);
                } else if (column.getColumnLength() < MAX_BINARY_LENGTH) {
                    builder.dataType(IRIS_BINARY);
                    builder.columnType(
                            String.format("%s(%s)", IRIS_BINARY, column.getColumnLength()));
                } else {
                    builder.columnType(IRIS_LONG_BINARY);
                    builder.dataType(IRIS_LONG_BINARY);
                }
                break;
            case DATE:
                builder.columnType(IRIS_DATE);
                builder.dataType(IRIS_DATE);
                break;
            case TIME:
                builder.dataType(IRIS_TIME);
                if (Objects.nonNull(column.getScale()) && column.getScale() > 0) {
                    Integer timeScale = column.getScale();
                    if (timeScale > MAX_TIME_SCALE) {
                        timeScale = MAX_TIME_SCALE;
                        log.warn(
                                "The time column {} type time({}) is out of range, "
                                        + "which exceeds the maximum scale of {}, "
                                        + "it will be converted to time({})",
                                column.getName(),
                                column.getScale(),
                                MAX_TIME_SCALE,
                                timeScale);
                    }
                    builder.columnType(String.format("%s(%s)", IRIS_TIME, timeScale));
                    builder.scale(timeScale);
                } else {
                    builder.columnType(IRIS_TIME);
                }
                break;
            case TIMESTAMP:
                builder.columnType(IRIS_TIMESTAMP2);
                builder.dataType(IRIS_TIMESTAMP2);
                break;

            default:
                throw CommonError.convertToConnectorTypeError(
                        DatabaseIdentifier.IRIS,
                        column.getDataType().getSqlType().name(),
                        column.getName());
        }
        return builder.build();
    }
@Test
    public void testReconvertShort() {
        Column column =
                PhysicalColumn.builder().name("test").dataType(BasicType.SHORT_TYPE).build();

        BasicTypeDefine typeDefine = IrisTypeConverter.INSTANCE.reconvert(column);
        Assertions.assertEquals(column.getName(), typeDefine.getName());
        Assertions.assertEquals(IrisTypeConverter.IRIS_SMALLINT, typeDefine.getColumnType());
        Assertions.assertEquals(IrisTypeConverter.IRIS_SMALLINT, typeDefine.getDataType());
    }