[英]AWS Redshift Spectrum - how to get the s3 filenames in the external table
[英]How to skip end few records when loading external table in Amazon Redshift Spectrum?
我的文件末尾有文字。
创建外部表时,我正在从S3加载文件,而我不想在我的表中加载该文件。
如何从末尾跳过该文本?
您不能在末尾显式跳过行,但可以使用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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.