Snowflake Azure 存储集成未经授权

Snowflake Azure Storage integration not authorized

我想通过从 Azure 存储帐户自动加载到雪花来加载数据。 我使用此指南来实施集成: https://docs.snowflake.net/manuals/user-guide/data-load-snowpipe-auto-azure.html#step-2-create-an-integration-in-snowflake 创建Stage后,我可以访问存储中的数据。

在最后一步,我想通过这个命令创建琵琶:

创建或替换管道 factory_data auto_ingest = 真 整合 = 'azure_int' 作为复制到 SENSOR(json) 来自(select $1 来自@azure_factory_stage) file_format=(类型=json);

不幸的是我得到这个错误:

"SQL compilation error: Integration '"azure_int"'不存在或未经授权。"

集成存在。

有人得到提示吗?

尝试使用全部大写的集成名称。

create or replace pipe factory_data 
auto_ingest = true 
integration = 'AZURE_INT' 
as copy into SENSOR(json) from (select  from @azure_factory_stage) file_format=(type=json);

来自 completely unrelated page:

Note that the integration name is case-sensitive and must be uppercase and enclosed in single quotes.

如果这不起作用,您可以查看 Snowflake 文档 here,其中解释了如果出于任何原因必须重新创建存储集成,如何将存储集成重新分配到阶段。创建管道不起作用的原因(在我的例子中)是因为我必须重新创建存储集成,这改变了阶段使用的 ID 来引用存储集成。使用以下内容后,它完美运行: 改变阶段 设置 STORAGE_INTEGRATION = storage_integration_name