Snowflake cloud data platform 管道将数据从阶段复制到表时,如何查看时间戳?

Snowflake cloud data platform 管道将数据从阶段复制到表时,如何查看时间戳?,snowflake-cloud-data-platform,Snowflake Cloud Data Platform,我从S3阶段创建了一个管道,并使用python脚本生成从流式服务到文件批中生成数据时的时间戳。我还希望能够在文件实际从S3阶段复制到表中时添加时间戳。我找到了一些关于管道使用历史方法的文档,但是尽管我已经运行了好几天的测试,但下面返回的是一个空表。我做错了什么 select * from table(information_schema.pipe_usage_history( date_range_start=>dateadd('day',-14,current_date()),

我从S3阶段创建了一个管道,并使用python脚本生成从流式服务到文件批中生成数据时的时间戳。我还希望能够在文件实际从S3阶段复制到表中时添加时间戳。我找到了一些关于
管道使用历史
方法的文档,但是尽管我已经运行了好几天的测试,但下面返回的是一个空表。我做错了什么

select * from table(information_schema.pipe_usage_history(
    date_range_start=>dateadd('day',-14,current_date()),
    date_range_end=>current_date())
)

我找到了答案。我应该使用另一个查询:
copy\u history
上述查询将重写如下

select * from table(information_schema.copy_history(
  table_name => '{replace with your schema.table}',
  start_time => dateadd(days, -14, current_timestamp()),
  end_time => current_timestamp())
)