Mongo translator - NAMEINSOURCE option is ignored
-------------------------------------------------
Key: TEIID-4635
URL:
https://issues.jboss.org/browse/TEIID-4635
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.12.8.6_3
Reporter: Juraj DurĂ¡ni
Assignee: Steven Hawkins
Mongo translator ignores NAMEINSOURCE table/column option.
For table \[1\], no data is returned. For column \[2\], all values in column are NULL.
{code:sql|title=\[1\] Sample DDL - table}
CREATE FOREIGN TABLE MyNewName (
id integer PRIMARY KEY,
name varchar(25)
) OPTIONS(UPDATABLE 'TRUE', NAMEINSOURCE 'RealCollectionName');
{code}
{code:sql|title=\[2\] Sample DDL - column}
CREATE FOREIGN TABLE MyCollection (
id integer PRIMARY KEY,
myColName varchar(25) OPTIONS(NAMEINSOURCE 'realName')
) OPTIONS(UPDATABLE 'TRUE');
{code}