You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2016/08/31 21:47:21 UTC
[jira] [Commented] (PIG-4974) A simple map reference fail to cast
[ https://issues.apache.org/jira/browse/PIG-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15453467#comment-15453467 ]
Koji Noguchi commented on PIG-4974:
-----------------------------------
Looking at the logicalplan
{code}
|---B: (Name: LOForEach Schema: a#2:bytearray,e#16:bytearray)
| |
| (Name: LOGenerate[false,false] Schema: a#2:bytearray,e#16:bytearray)ColumnPrune:OutputUids=[16, 2]ColumnPrune:InputUids=[1]
| | |
| | (Name: Map Type: null Uid: null Key: a)
| | |
| | |---m:(Name: Project Type: map Uid: 1 Input: 0 Column: (*))
| | |
| | (Name: UserFunc(org.apache.pig.impl.builtin.IdentityColumn) Type: bytearray Uid: 16)
| | |
| | |---(Name: Map Type: null Uid: null Key: e)
| | |
| | |---m:(Name: Project Type: map Uid: 1 Input: 1 Column: (*))
| |
| |---(Name: LOInnerLoad[0] Schema: m#1:map(#25:bytearray))
| |
| |---(Name: LOInnerLoad[0] Schema: m#1:map(#25:bytearray))
|
{code}
this seems to be coming from the implicit {{org.apache.pig.impl.builtin.IdentityColumn}} that is inserted for avoiding uid overlap.
> A simple map reference fail to cast
> -----------------------------------
>
> Key: PIG-4974
> URL: https://issues.apache.org/jira/browse/PIG-4974
> Project: Pig
> Issue Type: Bug
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
>
> {code}
> A = load 'input.txt' as (m:[bytearray]);
> B = FOREACH A GENERATE m#'a' as a, m#'e' as e;
> C = FILTER B by a != 'abc' and e != 'abc';
> store C into 'output';
> {code}
> This fails with
> {panel}
> Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 1075: Received a bytearray from the UDF or Union from two different Loaders. Cannot determine how to convert the bytearray to string
> {panel}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)