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

Implement queries using an interpreter, as an alternative to code generation & compilation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      For small, quick queries, the effort of generating code and compiling using janino is not justified. For these queries an interpreter would be quicker.

      We could use the same linq4j methods (e.g. groupBy) but the lambdas that implement expressions would be interpreted. Linq4j's AbstractNode.evaluate(Evaluator) is probably the way to go, but that method needs some work.

      To be clear, this change would not remove the code-generation option. It would just be another alternative.

      ---------------- Imported from GitHub ----------------
      Url: https://github.com/julianhyde/optiq/issues/107
      Created by: julianhyde
      Labels: enhancement,
      Created at: Fri Dec 20 20:07:11 CET 2013
      State: open

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                github-import GitHub Import
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: