[zebra] should support  using org.apache.hadoop.zebra.pig.TableStorer() if user 
does not want to specify storage hint
---------------------------------------------------------------------------------------------------------------------

                 Key: PIG-1120
                 URL: https://issues.apache.org/jira/browse/PIG-1120
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.6.0
            Reporter: Jing Huang
             Fix For: 0.6.0


If user doesn't want to specify storage hint, current zebra implementation only 
support  using org.apache.hadoop.zebra.pig.TableStorer('')  <Note: empty string 
in TableStorer(' ').

We should support the format of  using 
org.apache.hadoop.zebra.pig.TableStorer() as we do on  using 
org.apache.hadoop.zebra.pig.TableLoader()

sample 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 = load '2.txt' as (a:int, 
b:float,c:long,d:double,e:chararray,f:bytearray,r1(f1:chararray,f2:chararray),m1:map[]);


c = join a by a, b by a;
d = foreach c generate a::a, a::b, b::c;
describe d;
dump d;
store d into 'join3' using org.apache.hadoop.zebra.pig.TableStorer('');
--this will fail
--store d into 'join3' using org.apache.hadoop.zebra.pig.TableStorer( );


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to