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

Inconsistency with document projection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.0, 11.2.1
    • None
    • Query Engine
    • None

      When using the xml type for a given column the entire subtree is returned - which is universally the expected behavior. If projection is used and another type is used, then only local node text will be considered. If projection is disabled, all of the descendant text is considered.

      Based upon our initial consistency with oracle, we should consider all of the descendant text.

      for example:

      Select * From XmlTable('/root' Passing xmlparse(document '<root><def><test1>10</test1><test1>20</test1></def><abc>22</abc></root>')
      Columns b varchar(40) Path 'def') xx

      should return 1020.

            rhn-engineering-shawkins Steven Hawkins
            rhn-engineering-shawkins Steven Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: