我正在尝试从 Snowflake 和外部 S3 阶段提取数据,以 txt 文件格式存储可以使用 SFTP 发送给供应商的数据。但我面临 SQL 编译错误 -
文件格式脚本:
create or replace file format my_format
type = txt
field_delimiter = '|'
skip_header = 0
null_if = ('NULL', 'null')
empty_field_as_null = true
请告知我们如何在 S3 外部阶段将数据卸载为 txt 格式。