-
Notifications
You must be signed in to change notification settings - Fork 4
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
[SNOW-29] Initialize dynamic table: verificationsubmission_latest
#83
Conversation
synapse_data_warehouse/synapse/dynamic_tables/V2.21.0__verificationsubmission_latest.sql
Outdated
Show resolved
Hide resolved
synapse_data_warehouse/synapse/dynamic_tables/V2.21.0__verificationsubmission_latest.sql
Outdated
Show resolved
Hide resolved
synapse_data_warehouse/synapse/dynamic_tables/V2.21.0__verificationsubmission_latest.sql
Outdated
Show resolved
Hide resolved
synapse_data_warehouse/synapse/dynamic_tables/V2.21.0__verificationsubmission_latest.sql
Outdated
Show resolved
Hide resolved
Awesome to see this! Thanks for your work here! |
synapse_data_warehouse/synapse/dynamic_tables/V2.21.0__verificationsubmission_latest.sql
Show resolved
Hide resolved
synapse_data_warehouse/synapse/dynamic_tables/V2.21.0__verificationsubmission_latest.sql
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, I'll leave it to @philerooski for a final review so he can get familiar with this
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
problem
verificationsubmissionsnapshots
does not exist in Snowflake.Associated with #81.
solution
Add a V script to initialize
verificationsubmission_latest
testing
There are 19 unique submissions stored in the snapshots table, meaning there should be 19 total rows in the deduplicated latest table. The reason being that each submission can only be in 1 state - CREATED or UPDATED:
We verify that the V script generates a table with 19 rows:
We verify that the 19 unique IDs in the snapshots table matches the 19 unique IDs in the latest table:
( This query would produce results if there were any missing IDs from either table )
We use a few IDs to manually verify that the latest state of each submission is reflected in the latest table: