Is there a way to get access to .pig_schema or .pig_header value into a pig java udf, so that I know which field name is being parsed.
I work on an PigStorage
output generated by a different process and it keep changing rapidly. I want to make as many less changes as possible due to these changes.
For example : previous format would like like - {name:chararray, age:INT, salary:DOUBLE}
current format would look like - {sex:chararray, name:chararray, age:INT, salary:Double }
.
In my udf i am only interested in name and salary, but the order in which they are given as my input can vary as stated above.