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-44878: Change build engine to mysql and set values for size on TAP_SCHEMA columns #239

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

stvoutsin
Copy link
Contributor

@stvoutsin stvoutsin commented Jul 6, 2024

Summary

Add size value to the TAP_SCHEMA column entries that get inserted. This addresses the issue where validators expect the "size" column to match the "arraysize" col.

The second change is to modify the engine-url to "mysql", as the TAP_SCHEMA database currently deployed is in MySQL, so the insert statements need to be produced for that as far as I can see. I noticed this after trying to add values for the size column, which produced invalid SQL statements.

How was this tested

  • Tested on data-dev, using a custom Docker image built locally.
  • Test run using stilts taplint

@stvoutsin stvoutsin marked this pull request as draft July 6, 2024 00:19
@stvoutsin
Copy link
Contributor Author

Depends on a fix to https://rubinobs.atlassian.net/browse/DM-45139

Copy link
Collaborator

@JeremyMcCormick JeremyMcCormick left a comment

Choose a reason for hiding this comment

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

Please split the changes to the two files into separate commits.

@JeremyMcCormick JeremyMcCormick changed the title Change build engine to mysql / Enable size column in TAP_SCHEMA columns Change build engine to mysql and enable size column in TAP_SCHEMA columns Jul 8, 2024
@JeremyMcCormick JeremyMcCormick changed the title Change build engine to mysql and enable size column in TAP_SCHEMA columns Change build engine to mysql and set values for size on TAP_SCHEMA columns Jul 8, 2024
@stvoutsin stvoutsin marked this pull request as ready for review July 9, 2024 18:41
@JeremyMcCormick JeremyMcCormick changed the title Change build engine to mysql and set values for size on TAP_SCHEMA columns DM-44878: Change build engine to mysql and set values for size on TAP_SCHEMA columns Jul 15, 2024
Copy link
Collaborator

@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.

Addition of 'size' is appropriate; unable to explicitly review possible consequences of change of load-tap to MySQL.

Copy link
Collaborator

@JeremyMcCormick JeremyMcCormick left a comment

Choose a reason for hiding this comment

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

Requested changes were (separate commits for each file).

@JeremyMcCormick JeremyMcCormick merged commit ce3f754 into main Aug 5, 2024
6 checks passed
@JeremyMcCormick JeremyMcCormick deleted the tickets/DM-44878 branch August 5, 2024 23:57
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.

3 participants