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

Fix bug getFunction can get wrong function that have invalid parameters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Function/UDF
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: