Pig
  1. Pig
  2. PIG-245

Need wrapper UDFs for all java.lang.Math functions

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor 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().

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

        Activity

        Alan Gates made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Olga Natkovich made changes -
        Fix Version/s 0.1.0 [ 12312848 ]
        Olga Natkovich made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ajay Garg made changes -
        Attachment MathUDF.patch [ 12384120 ]
        Ajay Garg made changes -
        Field Original Value New Value
        Attachment mathudfs.zip [ 12382564 ]
        Shravan Matthur Narayanamurthy created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development