雪花雪管不工作,"executionState":"STOPPED_MISSING_TABLE"

时间:2021-03-29 18:59:03

标签: snowflake-cloud-data-platform snowflake-schema

我将 Snowpipe 与 Auto Ingest True 配合使用。我已按照所有步骤操作,但是当我在 S3 中上传文件时,它没有加载到 Snowflake 中。我使用以下查询检查了状态:

select system$pipe_status('DB.PUBLIC.mypipe');


{"executionState":"STOPPED_MISSING_TABLE","pendingFileCount":0,"notificationChannelName":"arn:aws:sqs:region:xxxx:xxxx","numOutstandingMessagesOnChannel":0,"lastReceivedMessageTimestamp":"2021-03-29T13:00:07.443Z","lastForwardedMessageTimestamp":"2021-03-29T13:00:07.443Z"}

看起来找不到目标表,但是表存在并且当前用户可以访问该表。当我只运行底层副本时,它工作正常并且文件被加载。

有人可以建议可能有什么问题。

create or replace pipe DB.public.mypipe auto_ingest=true as
  copy into DB.public.table
  from @DB.public.table
  file_format = (type = 'CSV' error_on_column_count_mismatch=false)  ON_ERROR="CONTINUE";

1 个答案:

答案 0 :(得分:0)

STOPPED_MISSING_TABLE 错误消息通常是指角色访问相关表的权限不足。

角色执行以下文档链接中的任务所需的必要权限。

https://docs.snowflake.com/en/user-guide/data-load-snowpipe-auto-s3.html#step-3-configure-security