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

Refactor RelShuttle not to depend on structures of RelNodes

    XMLWordPrintableJSON

Details

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

    Description

      Currently, RelShuttle implementations depends on the structures of RelNodes.

      For instance, RelShuttleImp.visit(LogicalAggregate aggregate) knows the first element of getInput() is the next element to be visited. 

      https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/rel/RelShuttleImpl.java#L75

       

      By this refactoring, implementations of RelShuttle will become free from invoking super.visit methods.

      https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/sql2rel/CorrelationReferenceFinder.java#L61

      Attachments

        Activity

          People

            Unassigned Unassigned
            tzenmyo Teruyoshi Zenmyo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: