Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16929

User-defined UDF functions can be registered as invariant functions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • None
    • None

    Description

      Add a configuration item "hive.aux.udf.package.name.list" in hive-site.xml, which is a scan corresponding to the $HIVE_HOME/auxlib/ directory jar package that contains the corresponding configuration package name under the class registered as a constant function.
      Such as,

      <property>
        <name>hive.aux.udf.package.name.list</name>
        <value>com.sample.udf,com.test.udf</value>
      </property>
      

      note:Your UDF function needs to add annotations @Description of org.apache.hadoop.hive.ql.exec.Description;

      Instructions:
         1, upload your jar file to $ HIVE_HOME/auxlib
         2, configure your UDF function corresponding to the package to the following configuration parameters

         <property>
              <name>hive.aux.udf.package.name.list</name>
              <value>com.sample.udf</value>
         </property>
        

         3, the configuration items need to be placed in the hive-site.xml file
         4, restart the Hive service to take effect

      Attachments

        1. HIVE-16929.1.patch
          13 kB
          ZhangBing Lin
        2. HIVE-16929.2.patch
          11 kB
          ZhangBing Lin
        3. HIVE-16929.3.patch
          16 kB
          ZhangBing Lin

        Issue Links

          Activity

            People

              linzhangbing ZhangBing Lin
              linzhangbing ZhangBing Lin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: