Sync Snowflake table schema to Lookup Table
Recipe ToolsMarketingDatabase
What it does
Every 5 minutes, this automation queries Snowflake for table field metadata and populates a Lookup Table with the schema. Someone can then reference current table structures without manual updates.
Who it's for
Data and analytics teams who need Snowflake schema changes reflected in a searchable Lookup Table for downstream workflows.
How teams use this
Keep schema reference current
Sync Snowflake table structures to a Lookup Table every 5 minutes so downstream workflows always reference the latest field names and data types without manual updates.
Enable schema validation in workflows
Add a validation condition that checks the Lookup Table before field mapping in other automations, reducing errors when Snowflake schema changes.
Audit table structure changes
Include job report logging for schema change history so the team can track when tables and fields are added, removed, or modified in Snowflake over time.
How it works
- Run sync every 5 minutes. Every 5 minutes, the scheduled sync starts to keep the Lookup Table current with Snowflake schema changes.
- Clear existing field entries. Truncate all entries from the DH Database Fields Lookup Table so stale schema data does not persist.
- Query table field metadata. Run custom SQL in Snowflake to retrieve field names, data types, and properties for each table in the sync list.
- Populate Lookup Table with fields. For each field returned from Snowflake, create a Lookup Table entry so the schema is searchable and available to other workflows.