### Question:
CassandraTypesUtils { public static PolyType getPolyType( DataType dataType ) { if ( dataType == DataTypes.UUID || dataType == DataTypes.TIMEUUID ) { return PolyType.CHAR; } else if ( dataType == DataTypes.ASCII || dataType == DataTypes.TEXT ) { return PolyType.VARCHAR; } else if ( dataType == DataTypes.TINYINT ) { return PolyType.TINYINT; } else if ( dataType == DataTypes.SMALLINT ) { return PolyType.SMALLINT; } else if ( dataType == DataTypes.INT || dataType == DataTypes.VARINT ) { return PolyType.INTEGER; } else if ( dataType == DataTypes.BIGINT ) { return PolyType.BIGINT; } else if ( dataType == DataTypes.DOUBLE ) { return PolyType.DOUBLE; } else if ( dataType == DataTypes.FLOAT ) { return PolyType.FLOAT; } else if ( dataType == DataTypes.DECIMAL ) { return PolyType.DECIMAL; } else if ( dataType == DataTypes.TIME ) { return PolyType.TIME; } else if ( dataType == DataTypes.DATE ) { return PolyType.DATE; } else if ( dataType == DataTypes.TIMESTAMP ) { return PolyType.TIMESTAMP; } else if ( dataType == DataTypes.BLOB ) { return PolyType.VARBINARY; } else if ( dataType == DataTypes.BOOLEAN ) { return PolyType.BOOLEAN; } else if ( dataType instanceof UserDefinedType ) { return PolyType.ARRAY; } else { log.warn( "Unable to find type for cql type: {}. Returning ANY.", dataType ); return PolyType.ANY; } }  static DataType getDataType( PolyType polyType, UserDefinedType arrayContainerUdt ); static PolyType getPolyType( DataType dataType ); static Class<?> getJavaType( DataType dataType ); static Function<Object, Object> convertToFrom( PolyType to, PolyType from ); static UdtValue createArrayContainerDataType( UserDefinedType arrayUdt, int dimension, int cardinality, PolyType innerType, RexCall arrayCall ); static List<Object> unparseArrayContainerUdt( UdtValue arrayContainer );  }### Answer:
@Test public void name() { assertEquals( PolyType.BOOLEAN, getPolyType( DataTypes.BOOLEAN ) ); assertEquals( PolyType.TINYINT, getPolyType( DataTypes.TINYINT ) ); assertEquals( PolyType.SMALLINT, getPolyType( DataTypes.SMALLINT ) ); assertEquals( PolyType.INTEGER, getPolyType( DataTypes.INT ) ); assertEquals( PolyType.BIGINT, getPolyType( DataTypes.BIGINT ) ); assertEquals( PolyType.FLOAT, getPolyType( DataTypes.FLOAT ) ); assertEquals( PolyType.DOUBLE, getPolyType( DataTypes.DOUBLE ) ); assertEquals( PolyType.DECIMAL, getPolyType( DataTypes.DECIMAL ) ); assertEquals( PolyType.DATE, getPolyType( DataTypes.DATE ) ); assertEquals( PolyType.TIME, getPolyType( DataTypes.TIME ) ); assertEquals( PolyType.TIMESTAMP, getPolyType( DataTypes.TIMESTAMP ) ); assertEquals( PolyType.VARCHAR, getPolyType( DataTypes.TEXT ) ); assertEquals( PolyType.VARBINARY, getPolyType( DataTypes.BLOB ) ); }