Search in sources :

Example 11 with QueryDataTypeFamily

use of com.hazelcast.sql.impl.type.QueryDataTypeFamily in project hazelcast by hazelcast.

the class ConvertersTest method checkConverterConversions.

private void checkConverterConversions(Converter converter, QueryDataTypeFamily... expectedSupportedConversions) {
    Set<QueryDataTypeFamily> expectedSupportedConversions0 = new HashSet<>();
    expectedSupportedConversions0.add(converter.getTypeFamily());
    expectedSupportedConversions0.addAll(Arrays.asList(expectedSupportedConversions));
    for (QueryDataTypeFamily typeFamily : values()) {
        checkConverterConversion(converter, typeFamily, expectedSupportedConversions0.contains(typeFamily));
    }
}
Also used : QueryDataTypeFamily(com.hazelcast.sql.impl.type.QueryDataTypeFamily) HashSet(java.util.HashSet)

Aggregations

QueryDataTypeFamily (com.hazelcast.sql.impl.type.QueryDataTypeFamily)11 DECIMAL_MATH_CONTEXT (com.hazelcast.sql.impl.expression.math.ExpressionMath.DECIMAL_MATH_CONTEXT)5 SqlTypeName (org.apache.calcite.sql.type.SqlTypeName)2 HazelcastSqlValidator (com.hazelcast.jet.sql.impl.validate.HazelcastSqlValidator)1 HazelcastTypeUtils.toHazelcastTypeFromSqlTypeName (com.hazelcast.jet.sql.impl.validate.types.HazelcastTypeUtils.toHazelcastTypeFromSqlTypeName)1 SqlDaySecondInterval (com.hazelcast.sql.impl.type.SqlDaySecondInterval)1 SqlYearMonthInterval (com.hazelcast.sql.impl.type.SqlYearMonthInterval)1 Converter (com.hazelcast.sql.impl.type.converter.Converter)1 HashSet (java.util.HashSet)1 RelDataType (org.apache.calcite.rel.type.RelDataType)1 RexCall (org.apache.calcite.rex.RexCall)1 RexInputRef (org.apache.calcite.rex.RexInputRef)1 RexNode (org.apache.calcite.rex.RexNode)1 SqlNode (org.apache.calcite.sql.SqlNode)1