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

Execute logical RelNodes using an interpreter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1-incubating
    • Component/s: None
    • Labels:
      None

      Description

      Add an interpreter that can evaluate logical RelNodes (such as FilterRel, TableAccessRel).

      The motivation is similar to OPTIQ-107 but this feature request would interpret logical RelNodes, not RelNodes that implement EnumerableRel. This case would eliminate planning time as well as the janino step.

      We should explicit sources, sinks and start/run/stop methods. A bit less efficient, but gives us the opportunity for detailed tracing and even single-stepping.

      Put code in a new package net.hydromatic.optiq.impl.interpreter.

        Issue Links

          Activity

          Hide
          julianhyde Julian Hyde added a comment -
          Show
          julianhyde Julian Hyde added a comment - Work in progress in https://github.com/julianhyde/optiq/tree/optiq-416 .
          Hide
          julianhyde Julian Hyde added a comment -

          Fixed in http://git-wip-us.apache.org/repos/asf/incubator-optiq/commit/5fba93bf.

          The current implementation works for a limited set of RelNode and RexNode types. I have logged OPTIQ-418 to complete the job. The Interpreter is nevertheless useful for testing purposes – for example, to make sure that decorrelation has produced a viable plan – as it stands.

          Show
          julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/incubator-optiq/commit/5fba93bf . The current implementation works for a limited set of RelNode and RexNode types. I have logged OPTIQ-418 to complete the job. The Interpreter is nevertheless useful for testing purposes – for example, to make sure that decorrelation has produced a viable plan – as it stands.

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development