Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-551

Fix bug getFunction can get wrong function that have invalid parameters

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Function/UDF
    • None

    Description

      currently, containFunction and getFunction can get a function that has invalid parameter

                 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)));
      
      

      when containFunction is called with same parameter types but not order is same. it just returns true or function.

      Attachments

        1. TAJO-551.patch
          8 kB
          DaeMyung Kang

        Activity

          People

            charsyam DaeMyung Kang
            charsyam DaeMyung Kang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment