I am trying to make an sql file in dbt in order to update models with a new column
{{
config(materialized='table'
, retain_previous_version_flg=false
, migrate_data_over_flg=true
)
}}
CREATE OR REPLACE TABLE {{ ref ('my_table') }} (
SELECT *, new_columns_ts TIMESTAMP
);
Is there a way to use CREATE directly rather than having to use SELECT or WITH clause?
Syntax error: Expected "(" or keyword SELECT or keyword WITH but got keyword CREATE at [16:1]