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/03/03 02:33:39 UTC
[jira] Resolved: (PIG-1121) [zebre] zebra user forces pig script to
have 'as xxx' in foreach statement in order to be able to store
successfully
[ https://issues.apache.org/jira/browse/PIG-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich resolved PIG-1121.
---------------------------------
Resolution: Won't Fix
Zebra is not actively worked on
> [zebre] zebra user forces pig script to have 'as xxx' in foreach statement in order to be able to store successfully
> --------------------------------------------------------------------------------------------------------------------
>
> Key: PIG-1121
> URL: https://issues.apache.org/jira/browse/PIG-1121
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.6.0
> Reporter: Jing Huang
>
> In the following pig script, if user do
> b = foreach a generate m1#'a' ;
> describe b will be:
> b: {bytearray}
> zebra store will fail, since there is no name passed to zebra, and zebra not only need type but also name in order to store.
> =========
> If user do
> b = foreach a generate m1#'a' as ms1;
> describe b will be:
> b: {ms1: bytearray}
> Then zebra store can be succeeded.
> =========
> Here is the full pig script.
> register /grid/0/dev/hadoopqa/jars/zebra.jar;
> a = load '1.txt' as (a:int, b:float,c:long,d:double,e:chararray,f:bytearray,r1(f1:chararray,f2:chararray),m1:map[]);
> b = foreach a generate m1#'a' as ms1;
> describe b;
> store b into 'map1' using org.apache.hadoop.zebra.pig.TableStorer('');
> ========
> So, we should either fix it or document it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira