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

Need wrapper UDFs for all java.lang.Math functions

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      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. mathudfs.zip
          38 kB
          Ajay Garg
        2. MathUDF.patch
          103 kB
          Ajay Garg

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: