[
https://issues.jboss.org/browse/TEIIDDES-1667?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-1667:
----------------------------------------
Created the following UDF java class:
{code}
package org.me.functions;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MyMathFunctions {
public static Object makeList(Object... items) {
if (items[0] instanceof Double) {
List<Double> returnList = new ArrayList<Double>();
for (Object item : items) {
returnList.add((Double)item);
}
return returnList;
} else if (items[0] instanceof Float) {
List<Float> returnList = new ArrayList<Float>();
for (Object item : items) {
returnList.add((Float)item);
}
return returnList;
}
return Collections.EMPTY_LIST;
}
}
{code}
Ability to define UDF with vararg to be used in a static VDB
------------------------------------------------------------
Key: TEIIDDES-1667
URL:
https://issues.jboss.org/browse/TEIIDDES-1667
Project: Teiid Designer
Issue Type: Bug
Components: Teiid Integration
Affects Versions: 8.0
Environment: JBoss AS 7.1.1
Teiid 8.3.0
Teiid Designer 8.0.0
Reporter: Shakir Shaik
Assignee: Mark Drilling
Fix For: 8.2
I am not able to use a UDF with vararg and deploy the same in a static VDB.
Please see the details in the following thread of Teiid Designer User forum discussions:
https://community.jboss.org/thread/223823?tstart=0
--
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