FAQ
Exceptions from UDFs inside a foreach are not captured
------------------------------------------------------

Key: PIG-440
URL: https://issues.apache.org/jira/browse/PIG-440
Project: Pig
Issue Type: Bug
Affects Versions: types_branch
Reporter: Pradeep Kamath
Assignee: Pradeep Kamath
Fix For: types_branch


The following code runs to completion without an error though the UDF throws an exceptions:
{code}

register UdfThrowsException.jar;

a = load 'st10k';
b = load 'st10k';
c = cogroup a by $0, b by $0;
d = foreach c generate flatten(udfThrowsException((a,b));
dump d;

{code}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Pradeep Kamath (JIRA) at Sep 19, 2008 at 11:43 pm
    [ https://issues.apache.org/jira/browse/PIG-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Pradeep Kamath updated PIG-440:
    -------------------------------

    Attachment: PIG-440.patch

    Patch for the issue
    Exceptions from UDFs inside a foreach are not captured
    ------------------------------------------------------

    Key: PIG-440
    URL: https://issues.apache.org/jira/browse/PIG-440
    Project: Pig
    Issue Type: Bug
    Affects Versions: types_branch
    Reporter: Pradeep Kamath
    Assignee: Pradeep Kamath
    Fix For: types_branch

    Attachments: PIG-440.patch


    The following code runs to completion without an error though the UDF throws an exceptions:
    {code}
    register UdfThrowsException.jar;
    a = load 'st10k';
    b = load 'st10k';
    c = cogroup a by $0, b by $0;
    d = foreach c generate flatten(udfThrowsException((a,b));
    dump d;
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Sep 20, 2008 at 12:46 am
    [ https://issues.apache.org/jira/browse/PIG-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich resolved PIG-440.
    --------------------------------

    Resolution: Fixed

    patch committed; thanks pradeep
    Exceptions from UDFs inside a foreach are not captured
    ------------------------------------------------------

    Key: PIG-440
    URL: https://issues.apache.org/jira/browse/PIG-440
    Project: Pig
    Issue Type: Bug
    Affects Versions: types_branch
    Reporter: Pradeep Kamath
    Assignee: Pradeep Kamath
    Fix For: types_branch

    Attachments: PIG-440.patch


    The following code runs to completion without an error though the UDF throws an exceptions:
    {code}
    register UdfThrowsException.jar;
    a = load 'st10k';
    b = load 'st10k';
    c = cogroup a by $0, b by $0;
    d = foreach c generate flatten(udfThrowsException((a,b));
    dump d;
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedSep 19, '08 at 6:55p
activeSep 20, '08 at 12:46a
posts3
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 3 posts

People

Translate

site design / logo © 2022 Grokbase