How to use -tagFile option with CSVExcelStorage in Pig

Viewed 183

I have to get the filename with each row so i used

data = LOAD 'data.csv' using PigStorage(',','-tagFile') AS (filename:chararray);

But in data.csv some columns have comma(,) in content as well so to handle comma issue i used

data = LOAD 'data.csv' using org.apache.pig.piggybank.storage.CSVExcelStorage()AS (filename:chararray);

But I didn't get any option to use -tagFile option with CSVExcelStorage. Please let me know how can i use CSVExcelStorage and -tagFile option at once?

Thanks

2 Answers
Related