suppose my data has 100 columns or fields, and i want to impose a schema.
is there a way i can create a separate file describing the schema of these
fields, and let PIG read the schema from that file?

for example.
instead of  verbose typing in the pigscript....
A = load mydata as (c1:int, c2:chararray, ...... ,c100:charaaray)

can i do something like.
A = load mydata as described in myschema.txt

myschema.txt would be something like
c1: int
c2: chararray
....
....
c100: chararray

thanks
vkh

Reply via email to