Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5891

Create a test fixture that would apply PROJECT_REDUCE_EXPRESSIONS to all tests in SqlOperatorTest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.35.0
    • None
    • core
    • None

    Description

      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.)

      Attachments

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: