Redshift COPY command delimiter not found

后端 未结 7 1675
有刺的猬
有刺的猬 2021-02-02 07:09

I\'m trying to load some text files to Redshift. They are tab delimited, except for after the final row value. That\'s causing a delimiter not found error. I only see a way to s

7条回答
  •  有刺的猬
    2021-02-02 07:28

    This may not be directly related to the OP's question but I received the same Delimiter not found error which was caused by newline characters within one of the fields.

    For any field that you think may have newline characters you can remove them with:

    replace(my_field, chr(10), '')
    

提交回复
热议问题