Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2770

Illegal argument exception opening function builder with projected "constant"

XMLWordPrintable

      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)

              blafond Barry LaFond
              blafond Barry LaFond
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: