You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2011/02/02 00:58:29 UTC
[jira] Created: (PIG-1837) Error while using IsEmpty function
Error while using IsEmpty function
----------------------------------
Key: PIG-1837
URL: https://issues.apache.org/jira/browse/PIG-1837
Project: Pig
Issue Type: Bug
Components: impl
Affects Versions: 0.9.0
Reporter: Olga Natkovich
Fix For: 0.9.0
I have the following 2 inputs:
data1:
1 11
2 15
data2:
1 10
4 11
5 10
And the following script to work on the data:
grunt> A = load 'data1' as (x, y: int);
grunt> B = load 'data2' as (x, z: int);
grunt> C = cogroup A by x, B by x;
grunt> D = foreach C generate group, SUM(((IsEmpty(A.y))? {(0)} : A.y)) + SUM (((IsEmpty(B.z))? {(0)} : B.z));
grunt> dump D;
After running for a while, I get the following error:
Backend error : org.apache.pig.builtin.IsEmpty cannot be cast to org.apache.pig.Accumulator
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (PIG-1837) Error while using IsEmpty function
Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding updated PIG-1837:
------------------------------
Attachment: PIG-1837.patch
test-patch results:
{code}
[exec] +1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] +1 release audit. The applied patch does not increase the total number of release audit warnings.
[exec]
{code}
> Error while using IsEmpty function
> ----------------------------------
>
> Key: PIG-1837
> URL: https://issues.apache.org/jira/browse/PIG-1837
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.9.0
> Reporter: Olga Natkovich
> Assignee: Richard Ding
> Fix For: 0.9.0
>
> Attachments: PIG-1837.patch
>
>
> I have the following 2 inputs:
> data1:
> 1 11
> 2 15
> data2:
> 1 10
> 4 11
> 5 10
> And the following script to work on the data:
> grunt> A = load 'data1' as (x, y: int);
> grunt> B = load 'data2' as (x, z: int);
> grunt> C = cogroup A by x, B by x;
> grunt> D = foreach C generate group, SUM(((IsEmpty(A.y))? {(0)} : A.y)) + SUM (((IsEmpty(B.z))? {(0)} : B.z));
> grunt> dump D;
> After running for a while, I get the following error:
> Backend error : org.apache.pig.builtin.IsEmpty cannot be cast to org.apache.pig.Accumulator
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (PIG-1837) Error while using IsEmpty function
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich reassigned PIG-1837:
-----------------------------------
Assignee: Richard Ding
> Error while using IsEmpty function
> ----------------------------------
>
> Key: PIG-1837
> URL: https://issues.apache.org/jira/browse/PIG-1837
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.9.0
> Reporter: Olga Natkovich
> Assignee: Richard Ding
> Fix For: 0.9.0
>
>
> I have the following 2 inputs:
> data1:
> 1 11
> 2 15
> data2:
> 1 10
> 4 11
> 5 10
> And the following script to work on the data:
> grunt> A = load 'data1' as (x, y: int);
> grunt> B = load 'data2' as (x, z: int);
> grunt> C = cogroup A by x, B by x;
> grunt> D = foreach C generate group, SUM(((IsEmpty(A.y))? {(0)} : A.y)) + SUM (((IsEmpty(B.z))? {(0)} : B.z));
> grunt> dump D;
> After running for a while, I get the following error:
> Backend error : org.apache.pig.builtin.IsEmpty cannot be cast to org.apache.pig.Accumulator
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (PIG-1837) Error while using IsEmpty function
Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding updated PIG-1837:
------------------------------
Status: Patch Available (was: Open)
> Error while using IsEmpty function
> ----------------------------------
>
> Key: PIG-1837
> URL: https://issues.apache.org/jira/browse/PIG-1837
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.9.0
> Reporter: Olga Natkovich
> Assignee: Richard Ding
> Fix For: 0.9.0
>
> Attachments: PIG-1837.patch
>
>
> I have the following 2 inputs:
> data1:
> 1 11
> 2 15
> data2:
> 1 10
> 4 11
> 5 10
> And the following script to work on the data:
> grunt> A = load 'data1' as (x, y: int);
> grunt> B = load 'data2' as (x, z: int);
> grunt> C = cogroup A by x, B by x;
> grunt> D = foreach C generate group, SUM(((IsEmpty(A.y))? {(0)} : A.y)) + SUM (((IsEmpty(B.z))? {(0)} : B.z));
> grunt> dump D;
> After running for a while, I get the following error:
> Backend error : org.apache.pig.builtin.IsEmpty cannot be cast to org.apache.pig.Accumulator
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (PIG-1837) Error while using IsEmpty function
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003546#comment-13003546 ]
Daniel Dai commented on PIG-1837:
---------------------------------
+1
> Error while using IsEmpty function
> ----------------------------------
>
> Key: PIG-1837
> URL: https://issues.apache.org/jira/browse/PIG-1837
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.9.0
> Reporter: Olga Natkovich
> Assignee: Richard Ding
> Fix For: 0.9.0
>
> Attachments: PIG-1837.patch
>
>
> I have the following 2 inputs:
> data1:
> 1 11
> 2 15
> data2:
> 1 10
> 4 11
> 5 10
> And the following script to work on the data:
> grunt> A = load 'data1' as (x, y: int);
> grunt> B = load 'data2' as (x, z: int);
> grunt> C = cogroup A by x, B by x;
> grunt> D = foreach C generate group, SUM(((IsEmpty(A.y))? {(0)} : A.y)) + SUM (((IsEmpty(B.z))? {(0)} : B.z));
> grunt> dump D;
> After running for a while, I get the following error:
> Backend error : org.apache.pig.builtin.IsEmpty cannot be cast to org.apache.pig.Accumulator
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (PIG-1837) Error while using IsEmpty function
Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding updated PIG-1837:
------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
Patch committed to trunk.
> Error while using IsEmpty function
> ----------------------------------
>
> Key: PIG-1837
> URL: https://issues.apache.org/jira/browse/PIG-1837
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.9.0
> Reporter: Olga Natkovich
> Assignee: Richard Ding
> Fix For: 0.9.0
>
> Attachments: PIG-1837.patch
>
>
> I have the following 2 inputs:
> data1:
> 1 11
> 2 15
> data2:
> 1 10
> 4 11
> 5 10
> And the following script to work on the data:
> grunt> A = load 'data1' as (x, y: int);
> grunt> B = load 'data2' as (x, z: int);
> grunt> C = cogroup A by x, B by x;
> grunt> D = foreach C generate group, SUM(((IsEmpty(A.y))? {(0)} : A.y)) + SUM (((IsEmpty(B.z))? {(0)} : B.z));
> grunt> dump D;
> After running for a while, I get the following error:
> Backend error : org.apache.pig.builtin.IsEmpty cannot be cast to org.apache.pig.Accumulator
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira