Andrej Šmigala created TEIID-4217:
-------------------------------------
Summary: Add support for Name In Source to MongoDB translator
Key: TEIID-4217
URL:
https://issues.jboss.org/browse/TEIID-4217
Project: Teiid
Issue Type: Enhancement
Components: Misc. Connectors
Affects Versions: 8.12.x
Reporter: Andrej Šmigala
Assignee: Steven Hawkins
Priority: Minor
MongoDB translator currently ignore NAMEINSOURCE option on the table, unlike e.g. the JDBC
translators.
So for instance querying a vdb like this:
{code:xml}
<vdb name="mongo" version="1">
<model name="mongo">
<source name="local" translator-name="mongodb"
connection-jndi-name="java:/mongoDS"/>
<metadata type="DDL"><![CDATA[
CREATE FOREIGN TABLE MyOrders (
OrderID integer PRIMARY KEY,
CustomerId integer,
OrderDate date,
Status integer
) OPTIONS(UPDATABLE 'TRUE', NAMEINSOURCE 'CustomOrders');
]]>
</metadata>
</model>
</vdb>
{code}
will create a collection called 'MyOrders' in the database, rather than
'CustomOrders'
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)