Closed dustinsmith1024 closed 3 years ago
Hi Dustin,
Are you writing your foreign keys from scratch in the FK Augmentation section? As I understand, calc.settings.market_id
and calc.settings.market_uuid
both point to public.market.id
, where public.market.id is a bigint type. Do you do explicit type casts when normally querying between these columns? Since not all bigints can be proper UUID types in Postgres, we don't do an explicit cast here.
However, I would expect a dependency break (notably from calc.settings.market__uuid to public.market.id) to allow you to work around this. Would you mind sharing your configuration (connection details redacted?)
calc.settings.market_uuid
does not point to public.market.id
it points to public.market.uuid
. So no we don't have to do any typecasting because they are different links.
It seems like the tool is assuming UUID is linked to ID though.
Hmmm, might be worth taking a look at your config and perhaps a schema dump of these two tables, something seems off.
Just trying this out for the first time. I have a table that has multiple foreign keys on
id
anduuid
to the same target table.The first ID related queries seem to work and then it fails while trying to do a select a subset based on the wrong key type. See the second/failed query.
Is there a way to break this foreign key? I am thinking about just dropping the uuid foreign key before running the tool. Messing with dependency breaks and fk_augmentation hasn't seemed to work at all.
Thanks for the help.