Pig Changing Schema to required type
问题 I'm a new Pig user. I have an existing schema which I want to modify. My source data is as follows with 6 columns: Name Type Date Region Op Value ----------------------------------------------------- john ab 20130106 D X 20 john ab 20130106 D C 19 jphn ab 20130106 D T 8 jphn ab 20130106 E C 854 jphn ab 20130106 E T 67 jphn ab 20130106 E X 98 and so on. Each Op value is always C , T or X . I basically want to split my data in the following way into 7 columns: Name Type Date Region OpX OpC OpT