use of org.apache.calcite.rel.rules.ReduceExpressionsRule.ProjectReduceExpressionsRule in project calcite by apache.
the class RelOptRulesTest method testReduceNullableToNotNull2.
/**
* Test case that reduces a nullable expression to a NOT NULL literal.
*/
@Test
void testReduceNullableToNotNull2() {
final ProjectReduceExpressionsRule rule = CoreRules.PROJECT_REDUCE_EXPRESSIONS.config.withOperandFor(LogicalProject.class).withMatchNullability(false).as(ProjectReduceExpressionsRule.ProjectReduceExpressionsRuleConfig.class).toRule();
checkReduceNullableToNotNull(rule);
}
Aggregations