Seeds
Load small static CSV reference data as warehouse tables with SEED models.
A SEED model loads a static CSV file into a table. It is a model type that sources data from a static CSV file instead of a data source you'd query with SQL or Python. The CSV files live inside your Vulcan project. Seeds fit static datasets that rarely or never change, for example:
National holidays and their dates
A static list of IDs to exclude
Vulcan only reloads a seed when the model definition or the CSV changes, not on every run.
For the full seed reference, see References → Vulcan → Models → Data Models → Seeds.
In
orders-analytics,order_status_lookupclassifies each order status into a group, a fulfillment flag, and a description. Every model that validates or displays order status joins against it.
The CSV
Place the file under seeds/, with a header row matching the columns you declare:
order_status,status_group,is_fulfilled,is_active_sort,description
Confirmed,Open,false,1,Order has been accepted but not yet shipped
Shipped,Fulfilled,true,2,Order has been shipped to the customer
Cancelled,Closed,false,3,Order was cancelled and excluded from revenue metricsThe model
A SEED model points at the CSV, declares the schema, and carries assertions that run on every load. Two things catch people out:
pathis relative to the.sqlfile, not the project root. A model inmodels/seeds/reaching a CSV inseeds/needs to go up two levels:../../.A schema you specify in the
MODELdefinition takes precedence over the column names in the CSV header. So the column order in theMODELdefinition must match the column order in the CSV file.
Last updated
Was this helpful?