Sync Snowflake data to Google Drive on schedule
DatabaseMarketingData ParserUtilitiesDocument/FileSales Enablement
What it does
When a scheduled interval triggers, this automation runs a custom SQL query in Snowflake to select rows from the DIM_DATE_DG table. The results are formatted as CSV and uploaded to Google Drive so the team has current data without manual exports.
Who it's for
Data and analytics teams who need regular Snowflake exports to Google Drive without running queries manually.
How teams use this
Export daily data snapshots to shared drive
Run the Snowflake query each morning and upload the CSV to Google Drive so the team starts each day with fresh data. No manual export steps are needed.
Share Snowflake data with finance team
Point the Google Drive upload to a folder that finance accesses, so they receive the DIM_DATE_DG table on schedule without requesting exports from data.
Filter rows by date range before export
Add a condition to the SQL query to select only rows within a specific date range, so the CSV contains only the subset the team needs each run.
How it works
- Run scheduled query in Snowflake. On the specified interval, execute a custom SQL query against the PROD_LEGIONDB_DOLLARGENERAL.DIM_DATE_DG table in Snowflake to retrieve the rows needed.
- Format results as CSV. Compose the query results into a CSV file using Csv Parser so it can be stored and shared in a standard format that Google Drive accepts.
- Upload file to Google Drive. Upload the CSV file to Google Drive so the team can access the latest Snowflake data in a shared location without downloading it manually.