[ 
https://issues.apache.org/jira/browse/PIG-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273701#comment-13273701
 ] 

Raghu Angadi commented on PIG-2697:
-----------------------------------


schema for one of the structs used in Thrft unit tests : 

{code}
grunt> a = load 'x' using 
com.twitter.elephantbird.pig.load.ThriftPigLoader('thrift.test.Nesting');
grunt> describe a;
grunt> a: {my_bonk: (type: int,message: chararray),my_ooe: (im_true: 
int,im_false: int,a_bite: int,integer16: int,integer32: int,integer64: 
long,double_precision: double,some_characters: chararray,zomg_unicode: 
chararray,what_who: int,base64: bytearray,byte_list: {t: (byte_list_tuple: 
int)},i16_list: {t: (i16_list_tuple: int)},i64_list: {t: (i64_list_tuple: 
long)})}
{code}

after:

{code}
grunt> set pig.pretty.print.schema true;
grunt> describe a;
a: {
    my_bonk: (
        type: int,
        message: chararray
    ),
    my_ooe: (
        im_true: int,
        im_false: int,
        a_bite: int,
        integer16: int,
        integer32: int,
        integer64: long,
        double_precision: double,
        some_characters: chararray,
        zomg_unicode: chararray,
        what_who: int,
        base64: bytearray,
        byte_list: {
            t: (
                byte_list_tuple: int
            )
        },
        i16_list: {
            t: (
                i16_list_tuple: int
            )
        },
        i64_list: {
            t: (
                i64_list_tuple: long
            )
        }
    )
}
{code}

                
> pretty print schema
> -------------------
>
>                 Key: PIG-2697
>                 URL: https://issues.apache.org/jira/browse/PIG-2697
>             Project: Pig
>          Issue Type: Improvement
>          Components: grunt
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>
> currently 'describe' dumps the schema in one line. If you have a long or 
> complicated schema, it is pretty much impossible to figure out how the schema 
> looks or what the fileds are.
> will provide an example below.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to