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-42293: Modify TAP visitor so constraints do not depend on column order #28

Merged
merged 1 commit into from Jan 11, 2024

Conversation

JeremyMcCormick
Copy link
Collaborator

@JeremyMcCormick JeremyMcCormick commented Jan 8, 2024

The TapLoadingVisitor was modified so that constraints are created in a second pass over the schema. This ensures that columns which may be referenced have been defined. The change was tested successfully using "load-tap" from the command line, with and without the "--dry-run" argument. The TAP data loaded into a MySQL database correctly when using the non-mock connection. The schema from this PR was used for testing.

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (617d492) 92.68% compared to head (c9a2070) 92.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
+ Coverage   92.68%   92.71%   +0.02%     
==========================================
  Files          18       18              
  Lines        1915     1921       +6     
  Branches      379      380       +1     
==========================================
+ Hits         1775     1781       +6     
  Misses         86       86              
  Partials       54       54              

☔ 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 good! Thank you!

The TapLoadingVisitor was modified so that constraints are created in a
second pass over the schema. This ensures that columns which may be
referenced have been defined. The change was tested successfully using
"load-tap" from the command line, with and without the "--dry-run"
argument. The TAP data loaded into a MySQL database correctly when
using the non-mock connection.
@JeremyMcCormick JeremyMcCormick merged commit d954441 into main Jan 11, 2024
10 checks passed
@JeremyMcCormick JeremyMcCormick deleted the tickets/DM-42293 branch January 11, 2024 00:03
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