use of com.hazelcast.jet.sql.impl.aggregate.function.HazelcastWindowTableFunction 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);
}
}
use of com.hazelcast.jet.sql.impl.aggregate.function.HazelcastWindowTableFunction 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