Matej Kralik created TEIIDDES-3204:
--------------------------------------
Summary: NATIVE tag causes new protobuf name when source model doesn't
have same name as existing protobuf name
Key: TEIIDDES-3204
URL:
https://issues.jboss.org/browse/TEIIDDES-3204
Project: Teiid Designer
Issue Type: Bug
Reporter: Matej Kralik
Priority: Critical
Attachments: JDGasDS-2018-05-25_12.29.37.mkv, importJDG7DS.zip
When JDG7 is used as a data source and imported from teiid importer, the model must have
the same name as protobuf name. If the name of the imported model is different, native tag
causes that new protobuf name is created and model doesn't select original data. (only
empty table)
I want to use JDG7 as a data source. I import source model ( People from
jdg7.1-remote-cache quickstart ) via Teiid Importer. When I set the name of the imported
source model as a name of the Protobuf file, everything works and I am able to select data
from table but when I set the name of the imported source model differently (e.g.
mySourceModel), run select query on dynamic VDB doesn't show any data from table and
in the JDG side is created the new Protobuf name according to the name of the model
(mySourceModel.proto).
{code:java}
12:25:22,365 INFO [org.teiid.CONNECTOR] (teiid-async-threads - 3)
=====================================
12:25:22,368 INFO [org.teiid.CONNECTOR] (teiid-async-threads - 3) ==== Protobuf Name:
People.proto
12:25:22,368 INFO [org.teiid.CONNECTOR] (teiid-async-threads - 3) ==== Protobuf Name:
mySourceModel.proto
12:25:22,368 INFO [org.teiid.CONNECTOR] (teiid-async-threads - 3)
=====================================
{code}
I notice that this behavior is caused by native metadata tag. When I remove the native tag
from XML vdb, I am able to select data from the model which has the different name as
protobuf file too.
If you set up JDG and JDV according to jdg7.1-remote-cache quickstart, you can use project
from attachment. I have also uploaded video.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)