You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2016/10/21 20:30:58 UTC
[jira] [Updated] (PIG-5048) HiveUDTF fail if it is the first
expression in projection
[ https://issues.apache.org/jira/browse/PIG-5048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-5048:
----------------------------
Description:
The following script fail:
{code}
define explode HiveUDTF('explode');
A = load 'bag.txt' as (a0:{(b0:chararray)});
B = foreach A generate explode(a0);
dump B;
{code}
Message: Unimplemented at org.apache.pig.data.UnlimitedNullTuple.size(UnlimitedNullTuple.java:31)
If it is not the first projection, the script pass:
{code}
define explode HiveUDTF('explode');
A = load 'bag.txt' as (a0:{(b0:chararray)});
B = foreach A generate a0, explode(a0);
dump B;
{code}
Thanks [~nkollar] reporting it!
was:
The following script fail:
{code}
define explode HiveUDTF('explode');
A = load 'bag.txt' as (a0:{(b0:chararray)});
B = foreach A generate explode(a0);
dump B;
{code}
Message: Unimplemented at org.apache.pig.data.UnlimitedNullTuple.size(UnlimitedNullTuple.java:31)
If it is not the first projection, the script pass:
{code}
define explode HiveUDTF('explode');
A = load 'bag.txt' as (a0:{(b0:chararray)});
B = foreach A generate a0, explode(a0);
dump B;
{code}
> HiveUDTF fail if it is the first expression in projection
> ---------------------------------------------------------
>
> Key: PIG-5048
> URL: https://issues.apache.org/jira/browse/PIG-5048
> Project: Pig
> Issue Type: Bug
> Components: impl
> Reporter: Daniel Dai
> Assignee: Daniel Dai
> Fix For: 0.17.0, 0.16.1
>
>
> The following script fail:
> {code}
> define explode HiveUDTF('explode');
> A = load 'bag.txt' as (a0:{(b0:chararray)});
> B = foreach A generate explode(a0);
> dump B;
> {code}
> Message: Unimplemented at org.apache.pig.data.UnlimitedNullTuple.size(UnlimitedNullTuple.java:31)
> If it is not the first projection, the script pass:
> {code}
> define explode HiveUDTF('explode');
> A = load 'bag.txt' as (a0:{(b0:chararray)});
> B = foreach A generate a0, explode(a0);
> dump B;
> {code}
> Thanks [~nkollar] reporting it!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)