【发布时间】:2016-03-03 19:57:55
【问题描述】:
我有一个文件,其中包含类似
的数据11/16/2015,"others (phone,health,etc.)",cont'd attempts,"resource,inc.",dg
我只想删除双引号内的逗号。
预期结果
11/162015,"others(phone health etc.)",cont'd attempts,"resource inc.",dg
到目前为止我尝试了什么
Foreach a generate replace ($1,',','');
Foreach a generate regex_extract($1,'[\,]+',1);
但它们都不起作用。
【问题讨论】:
-
你能给你想要的输出吗??
-
我希望输出为
-
我希望输出为 11/162015,"others(phone health etc.)",cont'd attempt,"resource inc.",dg
-
答案正确吗? @Jigyasa
标签: hadoop apache-pig