core/src/main/java/org/apache/carbondata/core/metadata/converter/ThriftWrapperSchemaConverterImpl.java
/**
   * convert from external to wrapper data type
   *
   * @param dataType
   * @return
   */
convert from external to wrapper data type
@param dataType
@return
convert from external to wrapper data type @param dataType @return
private DataType fromExternalToWrapperDataType(org.apache.carbondata.format.DataType dataType,
      int precision, int scale) {
    if (null == dataType) {
      return null;
    }
    switch (dataType) {
      case BOOLEAN:
        return DataTypes.BOOLEAN;
      case STRING:
        return DataTypes.STRING;
      case INT:
        return DataTypes.INT;
      case SHORT:
        return DataTypes.SHORT;
      case LONG:
        return DataTypes.LONG;
      case DOUBLE:
        return DataTypes.DOUBLE;
      case DECIMAL:
        return DataTypes.createDecimalType(precision, scale);
      case TIMESTAMP:
        return DataTypes.TIMESTAMP;
      case DATE:
        return DataTypes.DATE;
      case ARRAY:
        return DataTypes.createDefaultArrayType();
      case STRUCT:
        return DataTypes.createDefaultStructType();
      default:
        return DataTypes.STRING;
    }
  }
private DataType fromExternalToWrapperDataType ( org . apache . carbondata . format . DataType dataType , int precision , int scale ) { if ( null == dataType ) { return null ; } switch ( dataType ) { case BOOLEAN : return DataTypes . BOOLEAN ; case STRING : return DataTypes . STRING ; case INT : return DataTypes . INT ; case SHORT : return DataTypes . SHORT ; case LONG : return DataTypes . LONG ; case DOUBLE : return DataTypes . DOUBLE ; case DECIMAL : return DataTypes . createDecimalType ( precision , scale ) ; case TIMESTAMP : return DataTypes . TIMESTAMP ; case DATE : return DataTypes . DATE ; case ARRAY : return DataTypes . createDefaultArrayType ( ) ; case STRUCT : return DataTypes . createDefaultStructType ( ) ; default : return DataTypes . STRING ; } }
convert from external to wrapper data type
 @param dataType
 @return
convert from external to wrapper data type @param dataType @return