【发布时间】:2022-10-19 06:58:51
【问题描述】:
我在 dbt 中调用这个存储过程。如何使用 select 语句将结果存储到临时表中?
{% set results= run_query('call mystoredproc()') %}
{% do log("Printing table" , info=True) %}
{% do results.print_table() %}
{% set sql %}
select * from results <<--- how to store the result into a temp table
{% end set %}
{% do run_query(create_table_as(True, tmp_relation, sql)) %}
【问题讨论】:
标签: snowflake-cloud-data-platform dbt