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

complex type casting should return null on casting failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • None
    • None
    • Reviewed

    Description

      When casting fails for complex objects, pig is currently returning un-casted object if the cast fails.
      It should return null instead. That is consistent with the behavior when casting to other basic types.

      Attachments

        1. PIG-1989-1.patch
          2 kB
          Daniel Dai
        2. PIG-1989-2.patch
          3 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: