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

User-defined UDF functions can be registered as invariant functions

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            linzhangbing ZhangBing Lin Assign to me
            linzhangbing ZhangBing Lin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment