[
https://issues.jboss.org/browse/TEIIDDES-2038?page=com.atlassian.jira.plu...
]
Steven Hawkins commented on TEIIDDES-2038:
------------------------------------------
For type_varbinary column, the runtime type name is getting set as
string, but the UUID is getting pulled from the varbinary EMF datatype.
What bit of logic is setting the type name to string?
Where are your EMF datatypes defined?
Looking at your mapping file, you have no varbinary.
The last entry represents varbinary. Are you seeing something else? I believe that
it's uuid and the other values were pulled from the simple data types xmi.
Should this be mapped to object like the type_binary apparently is?
No. A byte array of fixed or varying length should be mapped to varbinary - since
it's the moral equivalent to our string class. What is the source type for
type_binary?
While importing from Deployed BQT2 VDB, JDBC type of 0 and type name
NULL was returned for column with design-time type varbinary
---------------------------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-2038
URL:
https://issues.jboss.org/browse/TEIIDDES-2038
Project: Teiid Designer
Issue Type: Bug
Reporter: Barry LaFond
Attachments: TEIID_2829_project.zip
1) Open attached project in Designer
2) Deploy the BQT2.vdb
3) Create another project
4) Import the VDB metadata via JDBC Importer into your second project (will end up being
a read-only VDB source model)
5) On *finish* you'll get an exception when processing the type_varbinary column
because the type returned is "0" and type name of "null"
{code}
java.lang.IllegalArgumentException: Expected argument to be non-null but got null
at org.teiid.core.designer.util.CoreArgCheck.isNotNull(CoreArgCheck.java:142)
at org.teiid.core.designer.util.CoreArgCheck.isNotNull(CoreArgCheck.java:128)
at
org.teiid.designer.sdt.types.BuiltInTypesManager.getBuiltInDatatype(BuiltInTypesManager.java:477)
at
org.teiid.designer.sdt.types.WorkspaceDatatypeManager.getBuiltInDatatype(WorkspaceDatatypeManager.java:94)
at
org.teiid.designer.jdbc.relational.impl.RelationalModelProcessorImpl.findType(RelationalModelProcessorImpl.java:1450)
at
org.teiid.designer.jdbc.relational.impl.RelationalModelProcessorImpl.setColumnInfo(RelationalModelProcessorImpl.java:1321)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira