[Bug] Snapshots and incremental models cannot add array columns #664
Labels
pkg:dbt-postgres
Issue affects dbt-postgres
triage:product
In Product's queue
type:bug
Something isn't working as documented
Is this a new bug?
Current Behavior
Adding an array-type column to an existing snapshot or incremental model will result in the following syntax error.
alter table "postgres"."dbt_teddy_snapshots"."test_model_snapshot" add column "some_array" ARRAY;
Postgres adapter: Postgres error: syntax error at or near "ARRAY"
Example
Expected Behavior
Alter table command should look like something like the following:
alter table "postgres"."dbt_snapshots"."example_model_snapshot" add column "some_array" text[];
Steps To Reproduce
example_model
with a downstream snapshot and incremental modelexample_model
example_model
and the downstream incremental models and snapshotsRelevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: