You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Vijay B <ve...@outlook.com> on 2014/03/13 10:19:48 UTC

Capturing Metadata information in a variable

Hi 
How can we capture metadata information into a variable in a pig script
a =  load 'some_table' using org.apache.hcatalog.pig.HCatLoader();describe a;

This will display the schema of relation a,  but how can we capture the result of describe into another variable to read the schema 
c = describe a;
or is there way to call methods of HCatLoader() directly
RegardsVijay