我的文件末尾有文本。
在创建外部表时,我从S3加载文件,但我不想将其加载到我的表中。
如何从结尾处跳过文本?
发布于 2019-02-04 23:00:37
不能显式跳过末尾的行,但可以使用MAXERROR参数允许一定数量的错误。应该能够将其设置为(number of lines to skip * number of files to be loaded)。
https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-load.html#copy-maxerror
https://stackoverflow.com/questions/54514753
复制相似问题