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

RexNode simplification does not traverse unknown functions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.19.0
    • Component/s: None

      Description

      Currently simplification concentrates on basic constructs (and/or/=/...), but if it encounters an UDF which is not known; the recursion is stopped.

      For example the following expression is not simplified:

        @Test public void testSimplifyRecurseIntoArithmetics() {
          checkSimplify(
              plus(literal(1),
                  case_(
                      falseLiteral, literal(1),
                      trueLiteral, literal(2),
                      literal(3))),
              "+(1, 2)");
        }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                kgyrtkirk Zoltan Haindrich
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m