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

casting parameters of a UDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      Currently if we have a UDF that declares via getArgToFuncMapping that it can only handle a subset of types, passing any other types to the function would result in an error. However, some types can be promoted to others and it would be useful if typechecker to perform best fit cast. For instance, if the input parameter has type of Long and the UDF support Int and Double, the code should cast the paraneter into Double.

      This would be very useful for conversion of the UDFs from the piigybank to the new code.

      Attachments

        1. 427-3.patch
          21 kB
          Shravan Matthur Narayanamurthy
        2. 427-2.patch
          20 kB
          Shravan Matthur Narayanamurthy
        3. 427-1.patch
          17 kB
          Shravan Matthur Narayanamurthy
        4. 427.patch
          14 kB
          Shravan Matthur Narayanamurthy

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: