我有.csv文件,它看起来像:
"Account Number","Account","Payment Method","Account Status","State","Batch ID","Transaction Date","Payment Amount","Entered By"
"00010792-8","Max Little","Credit Card","Active","NC","9155","9/3/2014","$70.85","Diane Barr"
"00036360-0","Bill Miller","Cash","Active","NC","9164","9/3/2014","$181.46","Jennifer Lamar"
"00045576-9","Lsw, Inc","Credit Card","Active","NC","9152","9/3/2014","$173.98","Daniel Sheets"
我尝试使用tFileInputDelimited加载它。
在Component->基本设置中,我选择字段分隔符:“,”
不幸的是,第3行帐户列值看起来像“Lsw,Inc”,包含分隔符“,”
如何正确读取此文件,而不将包含符号“,”的文本值拆分为列。
答案 0 :(得分:2)
您的CSV似乎是字符串引用的,因此只需告诉Talend就是这种情况。
谢天谢地,这很简单:
选择" CSV选项"框将显示转义字符和文本框的选项。只使用双引号,您的CSV似乎没问题,所以除非您发现任何其他特性,否则请将其保留。