Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3739

Use table alias rather than table identity for snapshots in CubeSegment, CubeInstance, CubeDesc

    XMLWordPrintableJSON

Details

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

    Description

      In 2.0.0, Kylin introduced table alias in DataModelDesc. Most of the elements in CubeDesc, CubeInstance & CubeSegment use the table alias rather than the table identity. However, for the lookup table snapshots, it still uses table identity.

      It's better for us to use only table alias instead of table identity in CubeDesc, CubeInstance & CubeSegment. If so, it can provide several advantages:

      1. For CubeDesc, CubeInstance & CubeSegment, what exposed to them is only the snowflake model and they don't need to care which real table is used.
      2. If users want to change the table name in the snowflake model, we can still keep the table alias unchanged and what we need to change is only the DataModelDesc. And we don't need to do any change for CubeDesc, CubeInstance & CubeSegment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yaho Zhong Yanghong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: