Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-245

Need wrapper UDFs for all java.lang.Math functions

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.1.0
    • None
    • None
    • Patch Available

    Description

      Attached is the code for all the wrapper UDFs for the math functions with unit tests. One exception is the random() function which does not take any argument. Since Pig doesn't support zero argument udfs, the current code takes a dummy argument which is not used in the call to java.lang.Math.random().

      Attachments

        1. MathUDF.patch
          103 kB
          Ajay Garg
        2. mathudfs.zip
          38 kB
          Ajay Garg

        Activity

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

          People

            shravanmn Shravan Matthur Narayanamurthy
            shravanmn Shravan Matthur Narayanamurthy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment