[英]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.