DaeMyung Kang created TAJO-551:
----------------------------------

             Summary: 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


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)

Reply via email to