wooden-spring-14915
09/23/2022, 12:05 AMdazzling-wolf-90175
09/23/2022, 1:51 PMcreate table foo (id bigint not null);
create table bar (id bigint not null, foo_id bigint);
insert into foo values (1);
insert into foo values (2);
insert into foo values (3);
insert into bar values (1, 1);
insert into bar values (2, 1);
insert into bar values (3, 1);
alter table foo add primary key(id);
alter table bar add primary key(id);
alter table bar add foreign key(foo_id) references foo(id);
This works fine natively in Redshift. So then I wonder, is this more of a DBT limitation? Or am I miss understanding the problem you are describing?adamant-forest-45768
09/23/2022, 4:51 PMdazzling-wolf-90175
09/23/2022, 4:56 PMelegant-house-93198
adamant-forest-45768
09/28/2022, 7:11 PM