]
Steven Hawkins reassigned TEIID-4612:
-------------------------------------
Assignee: Van Halbert (was: Steven Hawkins)
Case sensitivity may be required, but you would expect that the name in source option
would work.
Infinistpa DSL translator - table names are case sensitive
----------------------------------------------------------
Key: TEIID-4612
URL:
https://issues.jboss.org/browse/TEIID-4612
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.12.8.6_3
Reporter: Juraj DurĂ¡ni
Assignee: Van Halbert
Table names defined in DDL metadata are case sensitive.
Example:
This table name has exact name as object in JDG cache
{code:sql|title=DDL metadata}
CREATE FOREIGN TABLE SmallA (intKey integer PRIMARY KEY,...
{code}
This query executes correctly:
{code:sql|title=Query}
insert into smalla (intkey, stringkey) values (1, '1');
{code}
However, changing metadata to this:
{code:sql|title=Updated DDL metadata}
CREATE FOREIGN TABLE SMALLA (intKey integer PRIMARY KEY,...
{code}
Ends with error:
{code:plain}
14:58:31,509 WARN [org.teiid.CONNECTOR] (Worker17_QueryProcessorQueue224) Connector
worker process failed for atomic-request=sUTIOW6woCs0.0.0.57:
org.teiid.translator.TranslatorException: TEIID21005 Registered Class not found for table
reference SMALLA, check table name or nameInSouce to ensure one matches a registered class
in the resource adapter
at
org.teiid.translator.object.util.ObjectUtil.getRegisteredClass(ObjectUtil.java:106)
[translator-object-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.translator.object.ObjectUpdateExecution.executeUpdate(ObjectUpdateExecution.java:121)
[translator-object-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.translator.object.ObjectUpdateExecution.execute(ObjectUpdateExecution.java:100)
[translator-object-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.datamgr.ConnectorWorkItem$1.execute(ConnectorWorkItem.java:404)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:366)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) [:1.8.0-internal]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0-internal]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0-internal]
at
org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:211)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at com.sun.proxy.$Proxy47.execute(Unknown Source)
at
org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:306)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:112)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:108)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0-internal]
at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:65)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:280)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
[teiid-engine-8.12.8.6_3-redhat-1.jar:8.12.8.6_3-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0-internal]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0-internal]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0-internal]
{code}
The error happens even with specified NAMEINSOURCE for the table:
{code:sql|title=DDL metadata}
CREATE FOREIGN TABLE SmallA (intKey integer PRIMARY KEY,...
OPTIONS (NAMEINSOURCE 'SmallA', ...)
{code}