FAQ
divide by 0 is not handled correctly
------------------------------------

Key: PIG-418
URL: https://issues.apache.org/jira/browse/PIG-418
Project: Pig
Issue Type: Bug
Components: impl
Affects Versions: types_branch
Reporter: Olga Natkovich
Assignee: Olga Natkovich
Fix For: types_branch


A = load 'data' as (name:chararray, age:int, gpa:double);
B = foreach A generate age, (int)(age/(age - 20));
store B into 'types_2_3';

Get the following exceptiopn

08/09/05 10:56:55 ERROR mapReduceLayer.Launcher: Error message from task (map) tip_200808261638_3046_m_000000java.lang.ArithmeticException: / by zero
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.Divide.getNext(Divide.java:119)
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNext(POCast.java:139)
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:211)
at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNext(POForEach.java:156)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:127)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:64)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)

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

Search Discussions

  • Olga Natkovich (JIRA) at Sep 5, 2008 at 7:25 pm
    [ https://issues.apache.org/jira/browse/PIG-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-418:
    -------------------------------

    Attachment: PIG-418.patch
    divide by 0 is not handled correctly
    ------------------------------------

    Key: PIG-418
    URL: https://issues.apache.org/jira/browse/PIG-418
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: types_branch
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Fix For: types_branch

    Attachments: PIG-418.patch


    A = load 'data' as (name:chararray, age:int, gpa:double);
    B = foreach A generate age, (int)(age/(age - 20));
    store B into 'types_2_3';
    Get the following exceptiopn
    08/09/05 10:56:55 ERROR mapReduceLayer.Launcher: Error message from task (map) tip_200808261638_3046_m_000000java.lang.ArithmeticException: / by zero
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.Divide.getNext(Divide.java:119)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNext(POCast.java:139)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:211)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNext(POForEach.java:156)
    at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:127)
    at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:64)
    at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
    at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
    --
    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 5, 2008 at 7:27 pm
    [ https://issues.apache.org/jira/browse/PIG-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-418:
    -------------------------------

    Status: Patch Available (was: Open)
    divide by 0 is not handled correctly
    ------------------------------------

    Key: PIG-418
    URL: https://issues.apache.org/jira/browse/PIG-418
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: types_branch
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Fix For: types_branch

    Attachments: PIG-418.patch


    A = load 'data' as (name:chararray, age:int, gpa:double);
    B = foreach A generate age, (int)(age/(age - 20));
    store B into 'types_2_3';
    Get the following exceptiopn
    08/09/05 10:56:55 ERROR mapReduceLayer.Launcher: Error message from task (map) tip_200808261638_3046_m_000000java.lang.ArithmeticException: / by zero
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.Divide.getNext(Divide.java:119)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNext(POCast.java:139)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:211)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNext(POForEach.java:156)
    at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:127)
    at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:64)
    at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
    at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
    --
    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 5, 2008 at 8:55 pm
    [ https://issues.apache.org/jira/browse/PIG-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-418:
    -------------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    patch committed
    divide by 0 is not handled correctly
    ------------------------------------

    Key: PIG-418
    URL: https://issues.apache.org/jira/browse/PIG-418
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: types_branch
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Fix For: types_branch

    Attachments: PIG-418.patch


    A = load 'data' as (name:chararray, age:int, gpa:double);
    B = foreach A generate age, (int)(age/(age - 20));
    store B into 'types_2_3';
    Get the following exceptiopn
    08/09/05 10:56:55 ERROR mapReduceLayer.Launcher: Error message from task (map) tip_200808261638_3046_m_000000java.lang.ArithmeticException: / by zero
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.Divide.getNext(Divide.java:119)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POCast.getNext(POCast.java:139)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:211)
    at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNext(POForEach.java:156)
    at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:127)
    at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:64)
    at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
    at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
    --
    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 5, '08 at 6:01p
activeSep 5, '08 at 8:55p
posts4
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 4 posts

People

Translate

site design / logo © 2022 Grokbase