Mihai Budiu created CALCITE-5891:
------------------------------------

             Summary: Create a test fixture that would apply 
PROJECT_REDUCE_EXPRESSIONS to all tests in SqlOperatorTest 
                 Key: CALCITE-5891
                 URL: https://issues.apache.org/jira/browse/CALCITE-5891
             Project: Calcite
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.35.0
            Reporter: Mihai Budiu


SqlOperatorTest has many tests, including end-to-end tests.

However, none of these tests exercise the PROJECT_REDUCE_EXPRESSION rules, 
which often produce different results than these tests for constant expressions.

Ideally we should be able to subclass SqlOperatorTest and use a fixture that 
also applies this optimization prior to evaluation.

I have marked this as a {*}major priority{*}, because I suspect it would catch 
many bugs with minimal effort. (I have found at least 10 so far.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to