Alessandro Solimando created CALCITE-4917:
---------------------------------------------

             Summary: Add test for 'IS NOT NULL(a) AND a=b' simplifies to "a=b" 
for UnknownAsFalse semantics
                 Key: CALCITE-4917
                 URL: https://issues.apache.org/jira/browse/CALCITE-4917
             Project: Calcite
          Issue Type: Test
          Components: core
    Affects Versions: 1.28.0
            Reporter: Alessandro Solimando
            Assignee: Alessandro Solimando


Simplification (from _RexSimplify_ class) is mostly covered is 
{_}RexProgramTest{_}, a test for 
expressions of the form "IS NOT NULL(a) AND a=b" => "a=b" under the 
"UnknownAsFalse" semantics and not simplified under "UnknownAsUnknown" one, 
seems uncovered.
 
Since I had to write a test to make sure the simplification was as expected, I 
assume others might end up doing the same, and that the test will both act as 
documentation and it will also protect against regressions.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to