You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "DaeMyung Kang (JIRA)" <ji...@apache.org> on 2014/01/25 20:50:37 UTC
[jira] [Updated] (TAJO-551) Fix bug getFunction can get wrong
function that have invalid parameters
[ https://issues.apache.org/jira/browse/TAJO-551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
DaeMyung Kang updated TAJO-551:
-------------------------------
Attachment: TAJO-551.patch
Please review this patch.
> Fix bug getFunction can get wrong function that have invalid parameters
> -----------------------------------------------------------------------
>
> Key: TAJO-551
> URL: https://issues.apache.org/jira/browse/TAJO-551
> Project: Tajo
> Issue Type: Bug
> Components: function/udf
> Reporter: DaeMyung Kang
> Assignee: DaeMyung Kang
> Attachments: TAJO-551.patch
>
>
> currently, containFunction and getFunction can get a function that has invalid parameter
> {noformat}
> FunctionDesc meta = new FunctionDesc("test10", TestFunc2.class, FunctionType.GENERAL,
> CatalogUtil.newSimpleDataType(Type.INT4),
> CatalogUtil.newSimpleDataTypeArray(Type.INT4, Type.BLOB));
> catalog.createFunction(meta); assertTrue(catalog.containFunction("test10", CatalogUtil.newSimpleDataTypeArray(Type.INT4, Type.BLOB)));
> assertTrue(catalog.containFunction("test10", CatalogUtil.newSimpleDataTypeArray(Type.BLOB, Type.INT4)));
> {noformat}
> when containFunction is called with same parameter types but not order is same. it just returns true or function.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)