For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

In orders-analytics, order_status_lookup classifies 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 metrics

The model

A SEED model points at the CSV, declares the schema, and carries assertions that run on every load. Two things catch people out:

  • path is relative to the .sql file, not the project root. A model in models/seeds/ reaching a CSV in seeds/ needs to go up two levels: ../../.

  • A schema you specify in the MODEL definition takes precedence over the column names in the CSV header. So the column order in the MODEL definition must match the column order in the CSV file.

Reference a seed: Once the seed materializes, join it by its fully-qualified name like any other model. Vulcan makes sure it materializes first. Example:

Last updated

Was this helpful?