use of com.hazelcast.jet.sql.impl.validate.operators.common.HazelcastOperandTypeCheckerAware in project hazelcast by hazelcast.
the class HazelcastSqlOperatorTableTest method testOperandTypeChecker.
/**
* Make sure that all our operators either define the top-level operand checker that overrides that call binding,
* or confirm explicitly that they override the binding manually.
*/
@Test
public void testOperandTypeChecker() {
for (SqlOperator operator : HazelcastSqlOperatorTable.instance().getOperatorList()) {
boolean valid = operator instanceof HazelcastOperandTypeCheckerAware || operator instanceof HazelcastTableFunction || operator instanceof HazelcastWindowTableFunction || operator instanceof HazelcastCaseOperator || operator == HazelcastSqlOperatorTable.ARGUMENT_ASSIGNMENT;
assertTrue("Operator must implement one of classes from " + HazelcastFunction.class.getPackage().toString() + ": " + operator.getClass().getSimpleName(), valid);
}
}
Aggregations