Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-42787: Process constraints after tables are created in SQL visitor #39

Merged
merged 1 commit into from Feb 14, 2024

Conversation

JeremyMcCormick
Copy link
Collaborator

When constraints are processed in order, the use of forward references to columns will cause an exception, as they have not been visited and created yet. Instead, the visitor is changed so that the tables are processed first and then these referenced columns will be available when creating constraints.

When constraints are processed in order, the use of forward references
to columns will cause an exception, as they have not been visited and
created yet. Instead, the visitor is changed so that the tables are
processed first and then these referenced columns will be available
when creating constraints.
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b41b8de) 92.61% compared to head (ff79f12) 92.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   92.61%   92.62%   +0.01%     
==========================================
  Files          18       18              
  Lines        1949     1952       +3     
  Branches      380      381       +1     
==========================================
+ Hits         1805     1808       +3     
  Misses         87       87              
  Partials       57       57              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@gpdf gpdf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the same two-phase approach we needed elsewhere. Good to go.

@JeremyMcCormick JeremyMcCormick merged commit 5837a4e into main Feb 14, 2024
10 checks passed
@JeremyMcCormick JeremyMcCormick deleted the tickets/DM-42787 branch February 14, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants