if (domain.getRanges().isNone()) {
return domain.isNullAllowed() ? new IsNullPredicate(reference) : FALSE_LITERAL;
}
if (domain.getRanges().isAll()) {
return domain.isNullAllowed() ? TRUE_LITERAL : new IsNotNullPredicate(reference);
}
// Add disjuncts for ranges
List<Expression> disjuncts = new ArrayList<>();
List<Expression> singleValues = new ArrayList<>();