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

A Schema should not have to remember its name and parent

    Details

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

      Description

      A Schema should not have to know its name and parent. We should remove the following methods from the `Schema` SPI:

      ```java
      SchemaPlus getParentSchema();
      String getName();
      ```

      This will potentially allow schemas to be used more than once in the schema-hierarchy, with different names and parents; or even in different schema-hierarchies.

      The `name` and `parent` parameters in `SchemaFactory.create(SchemaPlus parent, String name, Map<String, Operand> operand)` will remain. The schema factory might find them useful. But the schema created does not need to remember them.

      The `SchemaPlus` wrapper added by Optiq will remember a schema's name and parent.

      ---------------- Imported from GitHub ----------------
      Url: https://github.com/julianhyde/optiq/issues/215
      Created by: julianhyde
      Labels:
      Created at: Sat Mar 29 23:02:14 CET 2014
      State: closed

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: