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

[ETL-677] Add bootstrap script for Snowflake Parquet tables #133

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

philerooski
Copy link
Contributor

@philerooski philerooski commented Jul 23, 2024

This script will load data into each of our Parquet tables one by one. It's expected to take a few hours to run on an xsmall warehouse.

You can test this script yourself by creating a testing branch from this branch, pushing your new branch (triggering the Snowflake deployment), copying dev Parquet data from the main namespace over to your namespace in S3 s3://recover-dev-processed-data/my_test_branch/parquet/, and then using the Snowflake CLI to invoke this script:

snow sql -f snowflake/scripts/copy_into_each_parquet_table.sql -D "database_name=recover_my_test_branch" -D "schema_name=parquet" 

It's important to note that the current behavior of this script and the stored procedure which it invokes is meant to fulfill the needs of doing a one-time initial load of our Parquet data for demonstration/sandbox purposes. Because our Parquet datasets are overwritten in S3, running this script on different days would load duplicate records – although we wouldn't have a way to differentiate them (e.g., there is no field indicating the Glue workflow which produced them or any other indicator of their ordinality).

@philerooski philerooski requested a review from a team as a code owner July 23, 2024 19:56
Copy link

Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 LGTM!

@philerooski philerooski merged commit 281a569 into main Jul 25, 2024
17 checks passed
@philerooski philerooski deleted the etl-677 branch July 25, 2024 17:59
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