[JBoss JIRA] (TEIIDDES-2660) Add support in Designer for foreign keys cross models
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2660?page=com.atlassian.jira.plu... ]
Barry LaFond commented on TEIIDDES-2660:
----------------------------------------
[~mmakovy] Unfortunately, the use of EMF to represent relational FK/PK references requires a 2 way reference, so the FK in one model holds a reference to the external PK and visa-versa. These references end up adding a "Model Import" which, of course becomes circular when we do the model dependency validation. argh....
> Add support in Designer for foreign keys cross models
> -----------------------------------------------------
>
> Key: TEIIDDES-2660
> URL: https://issues.jboss.org/browse/TEIIDDES-2660
> Project: Teiid Designer
> Issue Type: Bug
> Components: Modeling
> Reporter: Van Halbert
> Assignee: Barry LaFond
> Fix For: 11.0.2
>
> Attachments: foreignKey.zip
>
>
> Add support in Designer for foreign keys cross models.
> In Designer you cannot have a FK cross models. That is not a limitation with DDL metadata in Teiid. It's a misstatement to relate that to optimization. If the PK/FK is present we'll use that information just as we would in a single source - we do not however enforce the FK. That can be done through the use of an update procedure though.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (TEIIDDES-3037) Allow VDB user defined properties to have underscore(_) or period in the name
by Van Halbert (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-3037?page=com.atlassian.jira.plu... ]
Van Halbert updated TEIIDDES-3037:
----------------------------------
Summary: Allow VDB user defined properties to have underscore(_) or period in the name (was: Allow VDB user defined properties to have underscore(_) in the name)
> Allow VDB user defined properties to have underscore(_) or period in the name
> -----------------------------------------------------------------------------
>
> Key: TEIIDDES-3037
> URL: https://issues.jboss.org/browse/TEIIDDES-3037
> Project: Teiid Designer
> Issue Type: Bug
> Reporter: Chandra Akkinepalli
> Assignee: Barry LaFond
> Fix For: 11.0.2
>
>
> VDB's userdefined properties doesn't allow Names containing underscore in them.
> Our naming standards are defined to have _ in them. This is preventing us from doing a update via designer. As a work around we are udpating vdb.xml file within .vdb in an offline manner.
> It would would be great if this restriction can be removed
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (TEIIDDES-3015) Importing Flat File with "-" character in one column of the header
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-3015?page=com.atlassian.jira.plu... ]
Barry LaFond commented on TEIIDDES-3015:
----------------------------------------
So the problem is in the missing double-quotes for the column.
This needs to get checked on import and then wrap the name in d-quotes.
The resulting generated SQL should be:
{code}
SELECT
"a-a" AS """a-a""", b
FROM
(EXEC SourceModel.getTextFiles('test.csv')) AS f, TEXTTABLE(file COLUMNS "a-a" string, b string HEADER) AS A
{code}
> Importing Flat File with "-" character in one column of the header
> -------------------------------------------------------------------
>
> Key: TEIIDDES-3015
> URL: https://issues.jboss.org/browse/TEIIDDES-3015
> Project: Teiid Designer
> Issue Type: Bug
> Environment: CentOs 7 + Teiid 9.1.2 with Wildfly 10.0.0.Final + Eclipse Neon with Designer 11.
> Reporter: Pedro Inácio
> Fix For: 11.0.2
>
>
> Trying to create a simple Flat File View Model from aCSV file with the following content:
> {code:java}
> "a-a","b"
> 1,2
> 3,4
> {code}
> Teiid server gives the following exception
> {noformat}
> [org.teiid.RUNTIME] (Worker6_async-teiid-threads6) TEIID50036 VDB PREVIEW-80ce0d21-f22d-431f-bd12-89ac57ac9418.1 model "ViewModel" metadata failed to load. Reason:TEIID30386 org.teiid.api.exception.query.QueryParserException: TEIID31100 Parsing error: Encountered "new_table ( a[*]-[*]a string" at line 3, column 10.
> Was expecting: "string" | "varbinary" | "varchar" | "boolean" | "byte" | "tinyint" | "short" | "smallint" | "char" | "integer" ...: org.teiid.metadata.ParseException: TEIID30386 org.teiid.api.exception.query.QueryParserException: TEIID31100 Parsing error: Encountered "new_table ( a[*]-[*]a string" at line 3, column 10.
> Was expecting: "string" | "varbinary" | "varchar" | "boolean" | "byte" | "tinyint" | "short" | "smallint" | "char" | "integer" ...
> at org.teiid.query.parser.QueryParser.parseDDL(QueryParser.java:472)
> at org.teiid.metadata.MetadataFactory.parse(MetadataFactory.java:798)
> at org.teiid.query.metadata.DDLMetadataRepository.loadMetadata(DDLMetadataRepository.java:40)
> at org.teiid.runtime.AbstractVDBDeployer$MetadataRepositoryWrapper.loadMetadata(AbstractVDBDeployer.java:84)
> at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)
> at org.teiid.jboss.VDBService$6.run(VDBService.java:360)
> at org.teiid.jboss.VDBService$7.run(VDBService.java:411)
> at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:282)
> at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
> at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.teiid.api.exception.query.QueryParserException: TEIID31100 Parsing error: Encountered "new_table ( a[*]-[*]a string" at line 3, column 10.
> Was expecting: "string" | "varbinary" | "varchar" | "boolean" | "byte" | "tinyint" | "short" | "smallint" | "char" | "integer" ...
> at org.teiid.query.parser.QueryParser.convertParserException(QueryParser.java:214)
> ... 13 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (TEIIDDES-3065) VDB Export to Import problem
by Steve Tran (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-3065?page=com.atlassian.jira.plu... ]
Steve Tran updated TEIIDDES-3065:
---------------------------------
Attachment: (was: HostSettlement-vdb.xml)
> VDB Export to Import problem
> ----------------------------
>
> Key: TEIIDDES-3065
> URL: https://issues.jboss.org/browse/TEIIDDES-3065
> Project: Teiid Designer
> Issue Type: Bug
> Components: Import/Export
> Affects Versions: 10.1
> Environment: Windows 7
> JBoss Developer Studio 10.3.0.GA
> Teiid Designer 10.1.0.GA
> Reporter: Steve Tran
> Attachments: Screenshot from 2017-03-21 13-29-38.png
>
>
> I exported my VDB as a dynamic VDB file, then I attempted to re-import it but got an error message.
> {code}
> The message says "Unparsable table body".
> !ENTRY org.teiid.designer.vdb 4 4 2017-03-21 13:28:40.629
> !MESSAGE An exception occurred while performing a VDB operation
> !SUBENTRY 1 org.teiid.designer.vdb 4 0 2017-03-21 13:28:40.629
> !MESSAGE * Error Message: Unparsable table body
> Error Line Number: 323
> Error Column Number: 42
> Error Index: 29455
> !ENTRY org.teiid.designer.vdb 4 4 2017-03-21 13:28:48.784
> !MESSAGE An exception occurred while performing a VDB operation
> !SUBENTRY 1 org.teiid.designer.vdb 4 0 2017-03-21 13:28:48.784
> !MESSAGE * Error Message: Unparsable table body
> Error Line Number: 323
> Error Column Number: 42
> Error Index: 29455
> !ENTRY org.teiid.designer.vdb 4 4 2017-03-21 13:35:15.660
> !MESSAGE An exception occurred while performing a VDB operation
> !SUBENTRY 1 org.teiid.designer.vdb 4 0 2017-03-21 13:35:15.660
> !MESSAGE * Error Message: Unparsable table body
> Error Line Number: 323
> Error Column Number: 42
> Error Index: 29455
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months