Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4033

View model - named attributes in mapping statement are not automatically mapped to the corresponding column in the table definition

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • None
    • 8.7.2.6_2
    • VDB
    • None

    Description

      Unexpected sequential dependency between virtual table column order and mapping column sequence.

      The TEIID statement to create a virtual table goes like:

      CREATE VIEW TargetModelViewName (
      ColumnA … 1
      ColumnB … 2
      ColumnC …) … 3
      AS SELECT
      SourceModel.SourceTable.ColX AS ColumnA, 1
      SourceModel.SourceTable.ColY AS ColumnB, 2
      SourceModel.SourceTable.ColZ AS ColumnC; 3

      In any 4th+ generation query language a positional dependency is not expected, and therefore the following statement should also work, but fails in the TEIID

      CREATE VIEW TargetModelViewName (
      ColumnA … 1
      ColumnB … 2
      ColumnC …) … 3
      AS SELECT
      SourceModel.SourceTable.ColX AS ColumnA, 1
      SourceModel.SourceTable.ColZ AS ColumnC, 3
      SourceModel.SourceTable.ColY AS ColumnB; 2

      Attachments

        Activity

          People

            blafond Barry LaFond
            rhn-support-dsteigner Deborah Steigner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: