首页 > 解决方案 > 将文件添加到 AWS s3 后,雪花雪管文件不会自动摄取

问题描述

我为一张雪花桌创建了雪管。源文件将定期登陆 AWS S3 存储桶,因此请按照以下步骤创建雪管:

有人可以帮我弄清楚我在雪管设置上错过了什么

标签: snowflake-cloud-data-platform

解决方案


请按照以下设置解决您的雪管问题:

步骤:我:检查你的雪管的状态: SELECT SYSTEM$PIPE_STATUS('pipe_name'); 确保您的管道状态为 RUNNING

步骤二:检查与雪管关联的表的复制历史:select * from table(information_schema.copy_history(table_name=>'table_name', start_time=> dateadd(hours, -1, current_timestamp())));

Ensure the file is not loaded from the list / errored.

第三步:验证你的雪管负载 select * from table(validate_pipe_load( pipe_name=>'pipe_name', start_time=>dateadd(hour, -1, current_timestamp())) );

如果上述步骤看起来不错,则可能是您的 SQS 通知设置有问题:

通过参考以下链接关注雪花文章: 雪花知识库


推荐阅读