]
Matus Makovy updated TEIIDDES-2770:
-----------------------------------
Labels: release_notes verified_jbdsis-9.0.0.Beta (was: )
Illegal argument exception opening function builder with projected
"constant"
-----------------------------------------------------------------------------
Key: TEIIDDES-2770
URL:
https://issues.jboss.org/browse/TEIIDDES-2770
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 9.2, 9.0.5
Reporter: Barry LaFond
Assignee: Barry LaFond
Labels: release_notes, verified_jbdsis-9.0.0.Beta
Fix For: 10.0.1, 9.2.1
Simple SQL = SELECT 'abc' as b
Ttrows illegal arg check (below). Need to do check annotations on the DataTypeName for
valid version via AnnotationUtils.isApplicable() method.
java.lang.IllegalArgumentException: Type not applicable for this teiid version
(version=8.7.1, type=GEOMETRY)
at org.teiid.core.util.ArgCheck.isTrue(ArgCheck.java:53)
at
org.teiid.core.types.DataTypeManagerService.getDefaultDataType(DataTypeManagerService.java:565)
at org.teiid.query.ui.builder.util.BuilderUtils.isValidType(BuilderUtils.java:311)
at org.teiid.query.ui.builder.util.BuilderUtils.isConversionType(BuilderUtils.java:180)
at
org.teiid.query.ui.builder.model.ConstantEditorModel.setConstant(ConstantEditorModel.java:358)
at
org.teiid.query.ui.builder.model.ConstantEditorModel.setLanguageObject(ConstantEditorModel.java:419)
at
org.teiid.query.ui.builder.model.CompositeLanguageObjectEditorModel.setLanguageObject(CompositeLanguageObjectEditorModel.java:203)
at
org.teiid.designer.transformation.ui.builder.AbstractCompositeLanguageObjectEditor.setLanguageObject(AbstractCompositeLanguageObjectEditor.java:202)
at
org.teiid.designer.transformation.ui.builder.AbstractCompositeExpressionEditor.setLanguageObject(AbstractCompositeExpressionEditor.java:236)
at
org.teiid.designer.transformation.ui.builder.AbstractLanguageObjectBuilder.setEditorLanguageObject(AbstractLanguageObjectBuilder.java:466)
at
org.teiid.designer.transformation.ui.builder.AbstractLanguageObjectBuilder.handleTreeSelection(AbstractLanguageObjectBuilder.java:439)
at
org.teiid.designer.transformation.ui.builder.ExpressionBuilder.handleTreeSelection(ExpressionBuilder.java:85)
at
org.teiid.designer.transformation.ui.builder.AbstractLanguageObjectBuilder$5.selectionChanged(AbstractLanguageObjectBuilder.java:280)