如何查询雪花阶段的半结构数据
我具有这样的文件格式:
create or replace file format parq1 type='PARQUET';
我在舞台示例parquet中有一个镶木quet文件,并且能够以下面的方式查询它:
select $1 from @sampleparquet (file_format=>parq1 );
如果我尝试以下面的方式查询它,我将无法获取任何数据(获取SQL汇编错误):
从@SampleParquet(file_format =>(type ='parquet'));
选择$ 1从@SampleParquet(file_format = parq1);
选择$ 1
请在雪花中提出背后的原因
I have a file format like this:
create or replace file format parq1 type='PARQUET';
I have a parquet file in stage sampleparquet and able to querying it in the below way:
select $1 from @sampleparquet (file_format=>parq1 );
If I try to querying it in the below way I am not getting any data(getting a sql compilation error):
select $1 from @sampleparquet (file_format=>(type='PARQUET'));
select $1 from @sampleparquet (file_format= parq1 );
Kindly suggest the reason behind it in snowflake
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
语法:
不按照我们的文档。
您将必须使用此格式:
The syntax:
is not supported as per our documentation.
You will have to use this format: