You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to:
Clone operation via either:
dbt run-operation clone_model(model_name)
ordbt clone --selector my_selector
(which would clone all the scoped models where cloned=true).{% macro bigquery__clone_model(model_name) %}
{% set audit_name = “{node.name}_audit” %}
{% set clone_name = “{node.name}” %}
{% set cmd = “create or replace table {audit_name} clone clone_name” %}
{% run_query(cmd) %}
{% endmacro %}
Beta Was this translation helpful? Give feedback.
All reactions