[
https://issues.jboss.org/browse/TEIIDDES-824?page=com.atlassian.jira.plug...
]
Barry LaFond commented on TEIIDDES-824:
---------------------------------------
The class and method below finds the data type EObject from the BuiltInTypesManager. The
getBaseType() method is actually determining the "gYear" mapping.
So not sure what to do other than to create some mapping in the
RequestBuilderTraversalContext/generator class.
Also seems like we'd be hacking the code a bit?
RequestBuilderTraversalContext.addColumn(String name, XSDTypeDefinition type)
public void addColumn(String name, XSDTypeDefinition type)
throws ModelerCoreException {
if (procedure == null) {
procedure = createProcedure(procedureName);
}
ProcedureParameter param = factory.createProcedureParameter();
procedure.getParameters().add(param);
param.setDirection(DirectionKind.IN_LITERAL);
String uniqueName = getUniqueName(param, NameUtil.normalizeName(name));
param.setName(uniqueName);
param.setNameInSource(uniqueName);
param.setNullable(NullableType.NULLABLE_LITERAL);
param.setType(datatypeManager.getDatatypeForXsdType(type));
setReachedResultNode(true);
cachedParams.add(param);
}
Wrong runtime-type generated during the XML transformation generation
from XSD
------------------------------------------------------------------------------
Key: TEIIDDES-824
URL:
https://issues.jboss.org/browse/TEIIDDES-824
Project: Teiid Designer
Issue Type: Bug
Components: Transformations
Affects Versions: 7.2
Environment: F14 JBDS-CR2
Reporter: Ramesh Reddy
Assignee: Dan Florian
Fix For: 7.4
1) Imported the Books.xsd, BookDataTypes.xsd
2) Open the Books, xml schema and select "bibilography" element
3) Right click "Modeling -> Create XML to Scalar Transformation"
The generated transformation for the "published" column is set as
"gYear", thus the transformation validation fails.
"gYear" is not a Teiid "runtime" data type. "gYear" is
design time XML data type, however there are mappings defined for each design time data
type to runtime type. I suspect, we are not doing the translations. For Teiid
"gYear" should be mapped to "biginteger". Although "gYear"
definition can not really map to biginteger (as it has optional timezone its definition),
that how Teiid understands currently. We need to also make sure other 'g' types
are also mapped correctly.
If there is complex type that can not be deciphered correctly it may be good to leave as
xml fragment.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira