]
Steven Hawkins commented on TEIID-5222:
---------------------------------------
Our logic is being rigid on the type expectation for the array. We expect a string array
and are instead being given a object array. We can of course relax the type logic to
accept the object array given that we validate the types of the members as well.
Invalid conversion when selecting array
---------------------------------------
Key: TEIID-5222
URL:
https://issues.jboss.org/browse/TEIID-5222
Project: Teiid
Issue Type: Bug
Components: OData, Query Engine
Affects Versions: 8.12.x-6.4
Reporter: Maximilián Košiarčik
Assignee: Steven Hawkins
When issuing a query to select array from table in H2 database in teiid such as:
{code:sql}
SELECT (a,b) FROM y;
{code}
a,b are both strings.
it throws the following error:
{noformat}
Error: TEIID10076 Invalid conversion from type class java.lang.Object with value
'[Ljava.lang.Object;@30b0a27' to type class [Ljava.lang.String;
{noformat}
When issuing this query against H2 directly it works without error.
I find the issue when testing TEIID-4380, teiid issues such a query when building the
response for deep insert.