How to deal with Linebreaks in redshift load?

╄→尐↘猪︶ㄣ 提交于 2019-12-25 01:29:44

问题


I have a csv which has line breaks in one of the column. I get the error Delimiter not found.

If I replace the text as continuous without line-breaks then it works. But how do I deal with line-breaks.

My COPY command:

COPY cat_crt_test_scores 
from 's3://rds-cat-crt-test-score-table/checkcsv.csv' 
iam_role 'arn:aws:iam::423639311527:role/RedshiftS3Access' 
explicit_ids 
delimiter '|' 
TIMEFORMAT 'auto' 
ESCAPE;

Delimiter not found after reading till Dear Conduira,

来源:https://stackoverflow.com/questions/57647130/how-to-deal-with-linebreaks-in-redshift-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!