@Test
public void testComparisonExpressionWithNulls()
{
for (ComparisonExpression.Operator operator : ComparisonExpression.Operator.values()) {
if (operator == ComparisonExpression.Operator.IS_DISTINCT_FROM) {
continue;
}
assertFilter(format("NULL %s NULL", operator.getValue()), false);
assertFilter(format("42 %s NULL", operator.getValue()), false);
assertFilter(format("NULL %s 42", operator.getValue()), false);
assertFilter(format("11.1 %s NULL", operator.getValue()), false);
assertFilter(format("NULL %s 11.1", operator.getValue()), false);
}
}