]
Steven Hawkins resolved TEIID-5222.
-----------------------------------
Fix Version/s: 10.1
Resolution: Done
Applied as a general enhancement to allow all array type conversions that are allowable by
the component types.
This can be back ported.
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
Fix For: 10.1
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.