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
When we remove a column from a schema definition, it implies that the column is nullable. At present, target-postgres does not see absence of properties to mean that a column should be made nullable.
From the above, we can see that our new columnlocation__raw_id is being created and made nullable, but our existing column, location is retaining it's NOT NULL constraint, ultimately causing the load to fail.
Proposal
Make the upsert logic handle absence of a key in the Singer Schema as making the corresponding column nullable.
The text was updated successfully, but these errors were encountered:
Motivation
When we remove a column from a schema definition, it implies that the column is nullable. At present,
target-postgres
does not see absence of properties to mean that a column should be made nullable.Ex
From the above, we can see that our new column
location__raw_id
is being created and made nullable, but our existing column,location
is retaining it'sNOT NULL
constraint, ultimately causing the load to fail.Proposal
Make the upsert logic handle absence of a key in the Singer Schema as making the corresponding column nullable.
The text was updated successfully, but these errors were encountered: