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 2009/05/08 01:40:45 UTC
[jira] Created: (PIG-804) problem with lineage with double map
redirection
problem with lineage with double map redirection
------------------------------------------------
Key: PIG-804
URL: https://issues.apache.org/jira/browse/PIG-804
Project: Pig
Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Pradeep Kamath
v1 = load 'data' as (s,m,l);
v2 = foreach v1 GENERATE
s#'src_spaceid' AS vspaceid ;
v3 = foreach v2 GENERATE
(chararray)vspaceid#'foo';
explain v3;
The last cast does not have a loader associated with it and as the result the script fails on the backend with the following error: "Received a bytearray from the UDF. Cannot determine how to convert the bytearray to string."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-804) problem with lineage with double map
redirection
Posted by "Pradeep Kamath (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Kamath updated PIG-804:
-------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
Patch was commited on May 13 2009.
> problem with lineage with double map redirection
> ------------------------------------------------
>
> Key: PIG-804
> URL: https://issues.apache.org/jira/browse/PIG-804
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.2.1
> Reporter: Olga Natkovich
> Assignee: Pradeep Kamath
> Fix For: 0.3.0
>
> Attachments: PIG-804.patch
>
>
> v1 = load 'data' as (s,m,l);
> v2 = foreach v1 GENERATE
> s#'src_spaceid' AS vspaceid ;
> v3 = foreach v2 GENERATE
> (chararray)vspaceid#'foo';
> explain v3;
> The last cast does not have a loader associated with it and as the result the script fails on the backend with the following error: "Received a bytearray from the UDF. Cannot determine how to convert the bytearray to string."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-804) problem with lineage with double map
redirection
Posted by "Pradeep Kamath (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Kamath updated PIG-804:
-------------------------------
Attachment: PIG-804.patch
The root cause was in the parsers, in CastExp(), a getFieldSchema() was being called on the target operand of the cast to get the alias. This had a side effect of setting up lineage information (i.e. the canonical map in the operand). Apparently this place in the code is early for setting up lineage information since operators may be added/removed later on due to optimizations. This should be done at a later safe point (this change will be tracked in PIG-808). For a fix now, unsetFieldSchema() is called to unset the lineage information.
> problem with lineage with double map redirection
> ------------------------------------------------
>
> Key: PIG-804
> URL: https://issues.apache.org/jira/browse/PIG-804
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.2.1
> Reporter: Olga Natkovich
> Assignee: Pradeep Kamath
> Fix For: 0.3.0
>
> Attachments: PIG-804.patch
>
>
> v1 = load 'data' as (s,m,l);
> v2 = foreach v1 GENERATE
> s#'src_spaceid' AS vspaceid ;
> v3 = foreach v2 GENERATE
> (chararray)vspaceid#'foo';
> explain v3;
> The last cast does not have a loader associated with it and as the result the script fails on the backend with the following error: "Received a bytearray from the UDF. Cannot determine how to convert the bytearray to string."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-804) problem with lineage with double map
redirection
Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709040#action_12709040 ]
Santhosh Srinivasan commented on PIG-804:
-----------------------------------------
+1 for the patch.
> problem with lineage with double map redirection
> ------------------------------------------------
>
> Key: PIG-804
> URL: https://issues.apache.org/jira/browse/PIG-804
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.2.1
> Reporter: Olga Natkovich
> Assignee: Pradeep Kamath
> Fix For: 0.3.0
>
> Attachments: PIG-804.patch
>
>
> v1 = load 'data' as (s,m,l);
> v2 = foreach v1 GENERATE
> s#'src_spaceid' AS vspaceid ;
> v3 = foreach v2 GENERATE
> (chararray)vspaceid#'foo';
> explain v3;
> The last cast does not have a loader associated with it and as the result the script fails on the backend with the following error: "Received a bytearray from the UDF. Cannot determine how to convert the bytearray to string."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-804) problem with lineage with double map
redirection
Posted by "Pradeep Kamath (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Kamath updated PIG-804:
-------------------------------
Fix Version/s: 0.3.0
Affects Version/s: 0.2.1
Status: Patch Available (was: Open)
> problem with lineage with double map redirection
> ------------------------------------------------
>
> Key: PIG-804
> URL: https://issues.apache.org/jira/browse/PIG-804
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.2.1
> Reporter: Olga Natkovich
> Assignee: Pradeep Kamath
> Fix For: 0.3.0
>
>
> v1 = load 'data' as (s,m,l);
> v2 = foreach v1 GENERATE
> s#'src_spaceid' AS vspaceid ;
> v3 = foreach v2 GENERATE
> (chararray)vspaceid#'foo';
> explain v3;
> The last cast does not have a loader associated with it and as the result the script fails on the backend with the following error: "Received a bytearray from the UDF. Cannot determine how to convert the bytearray to string."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-804) problem with lineage with double map
redirection
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709086#action_12709086 ]
Hadoop QA commented on PIG-804:
-------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12408020/PIG-804.patch
against trunk revision 774167.
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 findbugs. The patch does not introduce any new Findbugs warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed core unit tests.
+1 contrib tests. The patch passed contrib unit tests.
Test results: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/38/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/38/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/38/console
This message is automatically generated.
> problem with lineage with double map redirection
> ------------------------------------------------
>
> Key: PIG-804
> URL: https://issues.apache.org/jira/browse/PIG-804
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.2.1
> Reporter: Olga Natkovich
> Assignee: Pradeep Kamath
> Fix For: 0.3.0
>
> Attachments: PIG-804.patch
>
>
> v1 = load 'data' as (s,m,l);
> v2 = foreach v1 GENERATE
> s#'src_spaceid' AS vspaceid ;
> v3 = foreach v2 GENERATE
> (chararray)vspaceid#'foo';
> explain v3;
> The last cast does not have a loader associated with it and as the result the script fails on the backend with the following error: "Received a bytearray from the UDF. Cannot determine how to convert the bytearray to string."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.