admin管理员组文章数量:1375859
I have done Snowpipe before for a azure Blob before, but since it was private I had access to tenant_id and all authentications. Maybe the question seems backward but when a storage is public, Can we create a data pipeline based on it? I've ingested the data to an external storage in Snowflake, and from there tried to create a pipe to copy data from External to raw table. It still ask for credentials.
CREATE OR REPLACE STAGE <name>_stage
URL = 'azure://azureopendatastorage.blob.core.windows/<>'
FILE_FORMAT = (TYPE = PARQUET);
CREATE OR REPLACE PIPE raw_pipe
AUTO_INGEST = TRUE
AS
COPY INTO nyc_raw
FROM @<name>_stage
PATTERN = '.*\.parquet$'
FILE_FORMAT = (TYPE = 'PARQUET')
ON_ERROR = 'CONTINUE';
I have done Snowpipe before for a azure Blob before, but since it was private I had access to tenant_id and all authentications. Maybe the question seems backward but when a storage is public, Can we create a data pipeline based on it? I've ingested the data to an external storage in Snowflake, and from there tried to create a pipe to copy data from External to raw table. It still ask for credentials.
CREATE OR REPLACE STAGE <name>_stage
URL = 'azure://azureopendatastorage.blob.core.windows/<>'
FILE_FORMAT = (TYPE = PARQUET);
CREATE OR REPLACE PIPE raw_pipe
AUTO_INGEST = TRUE
AS
COPY INTO nyc_raw
FROM @<name>_stage
PATTERN = '.*\.parquet$'
FILE_FORMAT = (TYPE = 'PARQUET')
ON_ERROR = 'CONTINUE';
Share
Improve this question
asked Mar 27 at 16:25
MinaBMinaB
411 silver badge3 bronze badges
1 Answer
Reset to default 0AUTO_INGEST requires a Snowflake notification integration that is linked to an Azure Storage queue. This is why it's asking for credentials.
It's still possible to create a snowpipe but you should use AUTO_INGEST=FALSE, and run refresh commands by a task (or any other scheduler).
CREATE OR REPLACE PIPE raw_pipe
AUTO_INGEST = FALSE
AS
COPY INTO nyc_raw
FROM @my_stage
PATTERN = '.*\.parquet$'
FILE_FORMAT = (TYPE = 'PARQUET')
ON_ERROR = 'CONTINUE';
版权声明:本文标题:Is there a way to create Snowpipe or Ingestion in Snowflake for a public Azure Blob dataset? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744080366a2587521.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论