且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Pig - 删除换行、返回和制表符

更新时间:2023-10-03 12:13:46

您的数据中有逗号,这就是字段和架构不匹配的原因.使用 CSVLoader 然后使用REPLACE命令替换'\\t','\\n','\\r'

There is comma in your data and that's why the fields and the schema are not matching.Use CSVLoader and then use the REPLACE command to replace '\\t','\\n','\\r'

<p>For example, given the string