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

Error Code:0 Message: Remote org.teiid.core.TeiidException:Error Code: 0 Message:Symbol EMAIL.EMAILDOCUMENT.MAPPINGCLASSES.EMAIL_1.id is specified with an unknown group context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.1, 7.5
    • 7.4
    • Query Engine
    • None

      Teiid 7.4 encounters an issue when you try to run a query against an Teiid database mapped via an XML document that requires multiple joins. We are able to successfully query the VDB and return the XML if we map a single join, however, when we attempt to map a second join table we receive the following error:

      A little background:

      We have a email schema with a variety of attributes and elements (simple and complex.) For example:

      Our schema looks similar to this:
      <code>
      <element name="Email" type="email" />

      <complex-type name="email">
      <sequence>
      <element name="sent" type="dateTime" />
      <element name="subject" type="string" />
      <element name="address" type="emailAddress" maxOccurs="unbounded" />
      <element name="body" type="string" maxOccurs="unbounded" />
      </sequence>
      <attribute name="id" type="long" use="required" />
      </complex-type>

      <complex-type name="emailAddress">
      <sequence>
      <element name="address" type="emailAddress"/>
      <element name="type" type="string" />
      </sequence>
      </complex-type>
      </code>

      We are able to successfully build the VDB mapping it from the "email" element from the schema. The id from the email object is used from the INPUTS to map the bodies and emailAddress tables to the email document. The XML document is mapped to 3 PostgreSQL tables (email, address, and body.) We are able to run queries that have filter criteria for two tables (the primary and one other however, when we try to place criteria against the third we get the following TeiidException:
      "Error Code:0 Message: Remote org.teiid.core.TeiidException:Error Code: 0 Message:Symbol EMAIL.EMAILDOCUMENT.MAPPINGCLASSES.EMAIL_1.id is specified with an unknown group context"

      For example the following "mock" queries would work just fine:
      <code>SELECT * FROM emailDocument WHERE subject like '%' OR body like '%'</code>
      <code>SELECT * FROM emailDocument WHERE subject like '%' OR emailAddress.address like '%'</code>

      However, this query would fail and throw the exception specified above.
      <code>SELECT * FROM emailDocument WHERE subject like '%' OR body like '%' OR emailAddress.address like '%'</code>

            rhn-engineering-shawkins Steven Hawkins
            calebwc_jira Caleb Corliss (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: