[
https://issues.jboss.org/browse/TEIIDDES-1554?page=com.atlassian.jira.plu...
]
Barry LaFond edited comment on TEIIDDES-1554 at 1/24/13 5:12 PM:
-----------------------------------------------------------------
The portfolio.zip project set which contains a 3.8 MB MarketDataView.xmi file which has
only one table in it. Somehow overe 17,000 extra/redundant/bogus
SqlTransformationMappingRoot (EMF) objects were created in this model. Only the first one
is valid, and the rest don't have enough info attached to them to validate any more
than: "Re-validate in the transformation editor.... blah, blah.."
I recreated/replaced the MarketDataView model and it's StockPrices table containing
the same SQL statement and it validated fine.
I also cleared out 2 transformations in the Stocks view model, so it would find the new
MarketDataView.StockPrices table. There was one remaining validation error on the
StockValidation virtual procedure:
===>>> ERROR: TEIID30118 Cannot create temporary table "TEMP". An
object with the same name already exists.
So the procedure below needs to be tweaked based on the new Teiid TEMPORARY TABLE
syntax/rules and described in the next Teiid Release Documenation
CREATE VIRTUAL PROCEDURE
BEGIN
DECLARE String VARIABLES.msg;
CREATE LOCAL TEMPORARY TABLE TEMP (companyname string, symbol string, price
bigdecimal, message string);
LOOP ON (SELECT
Stock.Stock.symbol, Stock.Stock.price, Stock.Stock.COMPANY_NAME
FROM
Stock) AS txncursor
BEGIN
VARIABLES.msg = RulesUDF.ValidateMarket(txncursor.COMPANY_NAME, txncursor.symbol,
txncursor.price);
IF(VARIABLES.msg <> 'NoMsg')
BEGIN
INSERT INTO TEMP (TEMP.companyname, TEMP.symbol, TEMP.price, TEMP.message)
VALUES (txncursor.COMPANY_NAME, txncursor.symbol, txncursor.price, VARIABLES.msg);
END
END
SELECT TEMP.companyname, TEMP.symbol, TEMP.price, TEMP.message FROM TEMP;
END
was (Author: blafond):
The portfolio.zip project set which contains a 3.8 MB MarketDataView.xmi file which
has only one table in it. Somehow overe 17,000 extra/redundant/bogus
SqlTransformationMappingRoot (EMF) objects were created in this model. Only the first one
is valid, and the rest don't have enough info attached to them to validate any more
than: "Re-validate in the transformation editor.... blah, blah.."
I recreated/replaced the MarketDataView model and it's StockPrices table containing
the same SQL statement and it validated fine.
I also cleared out 2 transformations in the Stocks view model, so it would find the new
MarketDataView.StockPrices table. There was one remaining validation error on the
StockValidation virtual procedure:
===>>> ERROR: TEIID30118 Cannot create temporary table "TEMP". An
object with the same name already exists.
So the procedure below needs to be tweaked based on the new Teiid TEMPORARY TABLE
syntax/rules
CREATE VIRTUAL PROCEDURE
BEGIN
DECLARE String VARIABLES.msg;
CREATE LOCAL TEMPORARY TABLE TEMP (companyname string, symbol string, price
bigdecimal, message string);
LOOP ON (SELECT
Stock.Stock.symbol, Stock.Stock.price, Stock.Stock.COMPANY_NAME
FROM
Stock) AS txncursor
BEGIN
VARIABLES.msg = RulesUDF.ValidateMarket(txncursor.COMPANY_NAME, txncursor.symbol,
txncursor.price);
IF(VARIABLES.msg <> 'NoMsg')
BEGIN
INSERT INTO TEMP (TEMP.companyname, TEMP.symbol, TEMP.price, TEMP.message)
VALUES (txncursor.COMPANY_NAME, txncursor.symbol, txncursor.price, VARIABLES.msg);
END
END
SELECT TEMP.companyname, TEMP.symbol, TEMP.price, TEMP.message FROM TEMP;
END
Unable to validate transformation in project set in Designer 8 where
the project was built in Designer 7.x
----------------------------------------------------------------------------------------------------------
Key: TEIIDDES-1554
URL:
https://issues.jboss.org/browse/TEIIDDES-1554
Project: Teiid Designer
Issue Type: Bug
Components: Transformations, Validation
Affects Versions: 8.0
Environment: jbdevstudio-product-universal-6.0.0.GA-v20121206-1855-B186.jar
Designer 8 final release
Reporter: Van Halbert
Assignee: Barry LaFond
Priority: Blocker
Fix For: 8.1
Attachments: portfolio.zip
Taking a project set built in the latest JDBS 5 / Designer 7.x and trying to validate it
in Designer 8.
The MartketDataView.StockPrices view has this error:
Found problems validating transformation defining MarketDataView/StockPrices, re-validate
in the transformation editor.
Unable to to get the error to go away after revalidating. Also tried the quick fix with
no luck. Also tried typing in spaces to trigger revalidation, no luck.
No error messages in the .log. Attached the project set.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira