Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5666

Add information about UDF naming collision to Drill documentation

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.10.0
    • Future
    • None

    Description

      Add information about UDF naming collision to Drill documentation.
      The below information can be used as model:

      Under duplicated UDF we imply UDF with the same signature (name + input parameters, including input mode, ex: LOWER(VARCHAR-OPTIONAL)).
      If duplicated function is found during drillbit start up, drillbit will fail.
      If we speak about Dynamic UDFs upload then if user tries to register duplicated function, registration will fail and user will see appropriate error message.
      This error message will include duplicated function signature and from where it was registered (built-in or jar name if dynamic).

      Functions can be built-in or dynamic. When function is built-in, it can be registered from two places, from drill-java-exec jar or from custom jar (if it is placed into the classpath, usually into jars folder).
      If function is built-in and was registered from drill-java-exec jar, you cannot replace it with your own, unless you change drill-java-exec jar (this will mean you'll have your own Drill version).
      If function is built-in and was registered from custom jar in classpath, you can remove / replace custom jar and restart drillbit.
      If function is dynamic, you can use DROP FUNCTION command and then register new function with the same signature.

      Link to Drill documentation - https://drill.apache.org/docs/develop-custom-functions/

      Attachments

        Activity

          People

            bbevens Bridget Bevens
            arina Arina Ielchiieva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: