use of com.hazelcast.jet.sql.impl.validate.operators.typeinference.HazelcastReturnTypeInference in project hazelcast by hazelcast.
the class HazelcastSqlOperatorTableTest method testReturnTypeInference.
@Test
public void testReturnTypeInference() {
for (SqlOperator operator : HazelcastSqlOperatorTable.instance().getOperatorList()) {
if (operator instanceof HazelcastTableFunction || operator instanceof HazelcastWindowTableFunction || operator == HazelcastSqlOperatorTable.IN || operator == HazelcastSqlOperatorTable.NOT_IN || operator == HazelcastSqlOperatorTable.UNION || operator == HazelcastSqlOperatorTable.UNION_ALL || operator == HazelcastSqlOperatorTable.ARGUMENT_ASSIGNMENT) {
continue;
}
boolean valid = operator.getReturnTypeInference() instanceof HazelcastReturnTypeInference;
assertTrue("Operator must have " + HazelcastReturnTypeInference.class.getSimpleName() + ": " + operator.getClass().getSimpleName(), valid);
}
}
Aggregations