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

Support recursive/reference data types

    XMLWordPrintableJSON

Details

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

    Description

      For Eclipse memory analyzer plugin it is required to process references somehow, enable navigation (e.g. `where emp.manager.manager.name='boss'`)

      Currently `StackOverflowError` occurs when trying self-referencing data type (see relevant code at https://github.com/julianhyde/optiq/blob/450562d268d37e8b24421117d1834e5b8dffdda4/core/src/main/java/net/hydromatic/optiq/jdbc/JavaTypeFactoryImpl.java#L60)

      ```java
      class Employee {
      Employee manager;
      ...
      }
      ```

      `StackOverflowError`
      ```
      at net.hydromatic.optiq.jdbc.JavaTypeFactoryImpl.createType(JavaTypeFactoryImpl.java:118)
      at net.hydromatic.optiq.jdbc.JavaTypeFactoryImpl.createStructType(JavaTypeFactoryImpl.java:76)
      at net.hydromatic.optiq.jdbc.JavaTypeFactoryImpl.createType(JavaTypeFactoryImpl.java:118)
      at net.hydromatic.optiq.jdbc.JavaTypeFactoryImpl.createStructType(JavaTypeFactoryImpl.java:76)
      ```

      ---------------- Imported from GitHub ----------------
      Url: https://github.com/julianhyde/optiq/issues/207
      Created by: vlsi
      Labels:
      Assignee: julianhyde
      Created at: Tue Mar 25 15:34:25 CET 2014
      State: open

      Attachments

        Activity

          People

            Unassigned Unassigned
            github-import GitHub Import
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: