[
https://jira.jboss.org/browse/TEIIDDES-490?page=com.atlassian.jira.plugin...
]
Paul Nittel commented on TEIIDDES-490:
--------------------------------------
FWIW, another transformation that's hosed is this from the Amazon Trek test script:
SELECT replace(b.ISBN, '-', '') AS ASIN,
(('http://www.amazon.com/exec/obidos/redirect?tag=ws%26link_code=sp1%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=0321186125%2526tag=ws%2526lcode=sp1%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/'
|| replace(b.ISBN, '-', '')) ||
'%25253FSubscriptionId=0NBNSWQR6RV539N2WV02') AS URL, b.ISBN, NAME AS Publisher,
title
FROM BOOKS.BOOKS AS b, BOOKS.PUBLISHERS AS p
WHERE b.PUBLISHER = PUBLISHER_ID
which validates to:
SELECT
replace(b.Books.BOOKS.ISBN, '-', '') AS ASIN,
(('http://www.amazon.com/exec/obidos/redirect?tag=ws%26link_code=sp1%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=0321186125%2526tag=ws%2526lcode=sp1%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/'
|| replace(b.Books.BOOKS.ISBN, '-', '')) ||
'%25253FSubscriptionId=0NBNSWQR6RV539N2WV02') AS URL, b.Books.BOOKS.ISBN,
p.Books.PUBLISHERS.NAME AS Publisher, b.Books.BOOKS.TITLE
FROM
Books.BOOKS AS b, Books.PUBLISHERS AS p
WHERE
b.Books.BOOKS.PUBLISHER = p.Books.PUBLISHERS.PUBLISHER_ID
Validation of transformation SQL with sub-select and alias
incorrectly adds model name to alias.column name
-----------------------------------------------------------------------------------------------------------
Key: TEIIDDES-490
URL:
https://jira.jboss.org/browse/TEIIDDES-490
Project: Teiid Designer
Issue Type: Bug
Components: Transformations
Affects Versions: 7.0
Environment: Fedora 12, OpenJDK, Designer 6/28
Reporter: Paul Nittel
Attachments: Query7.zip
This is from teh TPCR metadata text import test. A series of transformations is built for
query testing. When I ran it, several transformations were affected similarly. The Hawkman
looked at it and believes the issue lies within the Designer. Here's a simplified
version of the SQL:
SELECT supp_nation, cust_nation
FROM (SELECT n1.N_NAME AS supp_nation, n2.N_NAME AS cust_nation FROM TPCR.SUPPLIER,
TPCR.NATION AS n1, TPCR.NATION AS n2
WHERE (S_NATIONKEY = n1.N_NATIONKEY) ) AS shipping
Upon validation, it changes to:
SELECT
SHIPPING.supp_nation, SHIPPING.cust_nation
FROM
(SELECT n1.TPCR.NATION.N_NAME AS supp_nation, n2.TPCR.NATION.N_NAME AS cust_nation FROM
TPCR.SUPPLIER, TPCR.NATION AS n1, TPCR.NATION AS n2 WHERE TPCR.SUPPLIER.S_NATIONKEY =
n1.TPCR.NATION.N_NATIONKEY) AS shipping
The error is:
The query is parsable but not resolvable.
Resolver Error: Symbol n1.TPCR.NATION.N_NATIONKEY is specified with an unknown group
context
The element in question should be referred to as: n1.N_NATIONKEY. (I'll attach the
model project set.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira