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
Broken since version 0.12.0 (It was introduced then and ON CONFLICT only checks for (version) where it should be checking for version and uuid)
Based on the schema which exists since V1__intial_schema.sql
CREATE TABLE dataset_versions (
uuid UUID PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
dataset_uuid UUID REFERENCES datasets(uuid),
version UUID NOT NULL,
run_uuid UUID,
**UNIQUE (dataset_uuid, version)**
);
Current constraint marquez.public.datasets.datasets_namespace_uuid_name_key (namespace_uuid, name), but INSERT statement ON CONFLICT only checks for (uuid)
Broken since version 0.13.0 (It was introduced then and ON CONFLICT only checks for (version) where it should be checking for version and uuid)
Based on the schema which exists since V1__intial_schema.sql
CREATE TABLE job_versions (
uuid UUID PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
job_uuid UUID REFERENCES jobs(uuid),
version UUID NOT NULL,
location VARCHAR(255) NOT NULL,
latest_run_uuid UUID,
**UNIQUE (job_uuid, version)**
);
Proposal
For the three tables discussed above, either code needs to be adjusted to account for missing columns when looking for conflicts or migration needs to be applied to modify the unique constraint to adjust to the code.
The text was updated successfully, but these errors were encountered:
Please direct me to the template, I couldn't find one. I looked that REAME.md or Contributing.md. At the moment I have followed a template used by one of the issues.
Problem
Table: dataset_versions
https://github.com/MarquezProject/marquez/blob/0.42.0/api/src/main/java/marquez/db/DatasetVersionDao.java#L295
Broken since version 0.12.0 (It was introduced then and ON CONFLICT only checks for (version) where it should be checking for version and uuid)
Based on the schema which exists since V1__intial_schema.sql
Table: datasets
https://github.com/MarquezProject/marquez/blob/0.42.0/api/src/main/java/marquez/db/DatasetDao.java#L191
Broken since version 0.27.0
PR: #2087
PR DIFF: https://github.com/MarquezProject/marquez/pull/2087/files#diff-c687ca258e023847591c9b8c044adddaae1e7c1f6f9483928bf2871050cf6a63R232
Current constraint
marquez.public.datasets.datasets_namespace_uuid_name_key (namespace_uuid, name)
, butINSERT
statementON CONFLICT
only checks for(uuid)
Table: job_versions
https://github.com/MarquezProject/marquez/blob/0.42.0/api/src/main/java/marquez/db/JobVersionDao.java#L169
Broken since version 0.13.0 (It was introduced then and ON CONFLICT only checks for (version) where it should be checking for version and uuid)
Based on the schema which exists since V1__intial_schema.sql
Proposal
For the three tables discussed above, either code needs to be adjusted to account for missing columns when looking for conflicts or migration needs to be applied to modify the unique constraint to adjust to the code.
The text was updated successfully, but these errors were encountered: