use of com.hazelcast.jet.sql.impl.support.expressions.ExpressionType in project hazelcast by hazelcast.
the class ComparisonPredicateIntegrationTest method testNumeric.
@Test(timeout = 600_000)
public void testNumeric() {
Object[] values = getNumericValues();
for (int i = 0; i < values.length; i++) {
for (int j = i; j < values.length; j++) {
checkNumeric(values[i], values[j]);
}
}
for (ExpressionType type : ExpressionTypes.numeric()) {
// Column/column
checkUnsupportedColumnColumn(type, ExpressionTypes.allExcept(ExpressionTypes.numeric()));
// Column/literal
SqlColumnType columnType = type.getFieldConverterType().getTypeFamily().getPublicType();
checkUnsupportedColumnLiteral(type.valueFrom(), columnType, LITERAL_VARCHAR, LITERAL_BOOLEAN);
// Column/parameter
if (type.getFieldConverterType().getTypeFamily().getPrecedence() >= QueryDataType.BIGINT.getTypeFamily().getPrecedence()) {
checkUnsupportedColumnParameter(type.valueFrom(), columnType, 0, ExpressionTypes.allExcept(ExpressionTypes.numeric()));
}
}
}
Aggregations