[英]How to skip end few records when loading external table in Amazon Redshift Spectrum?
My file has text at the end. 我的文件末尾有文字。
While creating external table I'm loading file from S3 and which I don't want to load in my table. 创建外部表时,我正在从S3加载文件,而我不想在我的表中加载该文件。
How to skip that text from the end? 如何从末尾跳过该文本?
You cannot explicitly skip rows at the end but you can allow a certain number of errors with the MAXERROR parameter. 您不能在末尾显式跳过行,但可以使用MAXERROR参数允许一定数量的错误。 Should be able to set that to ( number of lines to skip
* number of files to be loaded
). 应该能够将其设置为( 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://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-load.html#copy-maxerror
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.