将CSV加载到Redshift:"缺少换行符:在位置2找到意外的字符"

Mic*_*per 7 csv amazon-web-services amazon-redshift

我正在尝试将S3中的CSV加载到Redshift上.数据如下所示:

tweet_id,tweet_text,created_at,geo_lat,geo_long,user_id,screen_name,name,profile_image_url,is_rt
477097990809612288,RT @Sourpatchcam: Matthew espinosa is the reason I breath,2014-06-12 10:39:59,.00000,.00000,969145484,PerfectJvcob,PerfectJvcob || Bio,http://pbs.twimg.com/profile_images/477092469893382146/k1YAOGRf_normal.jpeg,True
477097991049064448,@ajama3 @SultansThrone @itsfuad Dont hold your breath.,2014-06-12 10:39:59,.00000,.00000,719529744,MareejoXaamud,¯\_(?)_/¯,http://pbs.twimg.com/profile_images/471392213906104321/VbyMbZ7e_normal.jpeg,False
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Missing newline: Unexpected character 0x74 found at location 2
Run Code Online (Sandbox Code Playgroud)

(字符0x74是t).

我尝试删除标题行,我只是得到了"4"的意外字符.我的源码或其他东西需要一个/ n吗?

San*_*ane 5

您应该删除标题,因为标题是字符串,而您的实际列可能是整数,日期十进制等。

尝试使用以下选项进行复制,以避免特殊字符或转义等

逃生接单