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
Required Functionality
Synth seems to have trouble with a generated timestamp column.
Proposed Solution
It should ignore the column.
Use case
Relevant postgres schema:
CREATE TABLE
a_table (
id INTEGERPRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
created_date TIMESTAMPNOT NULL DEFAULT NOW(),
updated_date TIMESTAMPNULL-- etc.
);
ALTERTABLE
a_table
ADD COLUMN
last_modified_date TIMESTAMP GENERATED ALWAYS AS (GREATEST(created_date, updated_date)) STORED;
When trying to generate data using synth:
synth generate --seed 1234 --size 10 --to <uri> testing
...
Error: At namespace "testing"
Caused by:
0: Failed to insert data for collection a_table
1: One or more database inserts failed: error returned from database: cannot insert into column "last_modified_date": cannot insert into column "last_modified_date"
Synth version 0.6.9
The text was updated successfully, but these errors were encountered:
Required Functionality
Synth seems to have trouble with a generated timestamp column.
Proposed Solution
It should ignore the column.
Use case
Relevant postgres schema:
When trying to generate data using synth:
Synth version 0.6.9
The text was updated successfully, but these errors were encountered: