Bug 780888 (SOA-3348) - Incorrect Transformation when using 'Create XML to Scalar Transformation' in Teiid Designer
Summary: Incorrect Transformation when using 'Create XML to Scalar Transformation' in ...
Keywords:
Status: CLOSED WONTFIX
Alias: SOA-3348
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Tooling
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-01 18:48 UTC by dsteigne
Modified: 2018-11-14 10:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Users have noticed an incorrect transformation when using 'Create XML to Scalar Transformation' in Teiid Designer.
Clone Of:
Environment:
Last Closed: 2014-06-23 20:41:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
party.xsd (10.16 KB, text/xml)
2011-09-01 18:48 UTC, dsteigne
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-3348 0 Major Closed Incorrect Transformation when using 'Create XML to Scalar Transformation' in Teiid Designer 2015-04-17 18:17:04 UTC
Red Hat Issue Tracker TEIIDDES-1060 0 Major Closed Incorrect Transformation when using 'Create XML to Scalar Transformation' in Teiid Designer 2015-04-17 18:21:52 UTC
Red Hat Issue Tracker TEIIDDES-1126 0 Major Open Add Wizard to Build "XSD to Relational" and "Relational to XSD" Procedures 2015-04-17 18:17:04 UTC

Description dsteigne 2011-09-01 18:48:01 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000007s42K
Steps to Reproduce: create a virtual layer using an XSD.  
1.  Create new Teiid Project.
2.  Import the XSD using the 'Import/XML Schemas" dialogue.
3.  Create a skeleton Relational View Model.
4.  Open up the XSD from step 2 in the Eclipse XML Editor.
5.  Right-click on the one element (in this case students).
6.  Select Modeling/Create XML to Scalar Transformation
7.  Select the Relational View Model created in Step 3.
8.  Update imports and modify datatypes as required
9.  There are now 5 extract_* functions:  extract_student, extract_health, extract_nonCitizen, extract_citizenCountry, extract_birthCountry
10. Open up the Transformation View for any extract_* function.  For example, the extract_student.

The transformation for this is generated as follows:
CREATE VIRTUAL PROCEDURE
BEGIN
	SELECT t.* FROM XMLTABLE(XMLNAMESPACES(DEFAULT ''), '/students/student/barReview/studentRep/health/nonCitizen' PASSING STUDENTVIEWEXTRACT.STUDENTS.EXTRACT_STUDENT.xml_in COLUMNS headRep boolean, abaNumber string) AS t;
END

First things to notice: the namespace is empty and the XQuery is incorrect.  Upon inspection of the sample.xml file, one will notice that <student> is the second element.  Additionally, the root element is using a namespace.  In this instance, the root element is actually <pty:students>.  And, the XQuery that is generated, points to nothing.  Specifically, barReview, health, and nonCitizen are all at the same level within the document.

project_key: SOA

Incorrect Transformation when using 'Create XML to Scalar Transformation' in Teiid Designer.  See Steps to reproduce section for full description.

Comment 1 dsteigne 2011-09-01 18:48:32 UTC
Attachment: Added: party.xsd


Comment 2 Van Halbert 2011-09-01 19:03:38 UTC
Link: Added: This issue Cloned to SOA-3349


Comment 3 JBoss JIRA Server 2012-02-15 15:41:27 UTC
Van Halbert <vhalbert> made a comment on jira TEIIDDES-1060

Will this make it into 7.7?

Comment 4 JBoss JIRA Server 2012-02-15 16:12:11 UTC
Barry LaFond <blafond> made a comment on jira TEIIDDES-1060

We're re-visiting our whole XML/WSDL approach to modeling and model generation. Our vision is that users will be given a different/clearer path to get from their WSDL/Schema to their models.

Comment 5 JBoss JIRA Server 2012-02-15 16:12:32 UTC
Ted Jones <tejones> made a comment on jira TEIIDDES-1060

With changes to XML import and CP for 7.7/7.7.1, it may not make sense to spend time on this since it may change dramatically.

Comment 6 Van Halbert 2012-02-15 16:20:21 UTC
Designer has changed the targeted version to 8.0 and they will not make the fix in 7.7.

Comment 7 Van Halbert 2012-11-08 18:30:41 UTC
TEIIDDES-1126 is targeted as a replacement for TEIID-1060

Comment 12 jolee 2014-06-23 20:41:23 UTC
The driving SF ticket was filed internally and I don't see a customer driving.  Changing this to CLOSED WONTFIX until driven externally as no upstream fix exists.

Comment 13 JBoss JIRA Server 2015-04-17 18:21:53 UTC
Johnathon Lee <jolee> updated the status of jira TEIIDDES-1060 to Closed


Note You need to log in before you can comment on or make changes to this bug.