Data Product lifecycle
The full path from local setup to a production data product: project initialization, model development, testing, semantics, planning and running, data quality, API access, and monitoring.
Follow this path from setup to production. Each step builds on the previous one.
Phase 1: project initialization
Create your project structure.
Initialize project
vulcan initThis creates:
my-project/
├── config.yaml # Project configuration
├── usage.yml # Usage/config metadata (config.yaml's usage_path tries usage.yml, then usage.yaml)
├── agreement.md # Data-sharing agreement (config.yaml's agreement_path)
├── .gitignore # Ignores .vulcan/, logs, local state databases, and secrets
├── .vulcan/ # Local state (default DuckDB state.db); git-ignored
├── audits/ # Data quality assertions (blocking)
│ └── .gitkeep
├── dq/ # Data quality checks (kind: dq)
│ └── full_model.yml
├── macros/ # Reusable SQL patterns
│ ├── __init__.py
│ └── .gitkeep
├── models/ # SQL transformation models
│ ├── full_model.sql
│ ├── incremental_model.sql
│ ├── seed_model.sql
│ ├── metrics/
│ │ ├── event_activity.yml
│ │ └── .gitkeep
│ └── semantics/
│ ├── incremental_model.yml
│ └── .gitkeep
├── plugins/ # Auth extension hook (after_authorize)
│ └── auth_ext.py
├── policies/ # Auth-backed access & masking policies
│ └── access/
│ └── incremental_model_masking.yml
├── seeds/ # CSV files for static data
│ ├── seed_data.csv
│ └── .gitkeep
└── tests/ # Unit tests for models
├── test_full_model.yaml
└── .gitkeepConfigure project
Edit config.yaml:
Set database connections
Define model defaults (dialect, start date, cron schedule)
Configure linting rules
Verify setup
Checks connection status, project structure, and configuration.
Phase 2: model development
Write your data transformation logic.
Write models
SQL models (models/example.sql):
Python models (models/example.py):
Most teams start with SQL for transformations, then add Python when SQL gets painful: calling external APIs, running machine learning models, or handling complex business rules.
Lint your code
Vulcan checks for syntax errors, ambiguous columns, and invalid SQL patterns. Vulcan validates code before execution.
Phase 3: testing and validation
Make sure your models work correctly.
Write tests
Tests validate model logic locally. They run without touching your warehouse, so you get fast feedback without warehouse costs.
Run tests
Tests pass when model logic is correct.
Phase 4: semantic layer
Define business metrics and dimensions.
Define semantic models
Create models/semantics/users.yml:
You get:
Business-friendly query interface
Automatic API generation
Single source of truth for metrics
Phase 5: planning
Review and apply changes safely.
Create a plan
The plan:
Validates models and dependencies
Calculates which intervals need backfill
Shows full impact of changes
Creates isolated environment for testing
Plan output shows:
Models that will be created/modified
Data intervals that need processing
Dependencies and execution order
Review plan
Check:
Are the right models affected?
Is the backfill scope correct?
Any breaking changes?
Apply plan
Applying the plan:
Creates model variants (with unique fingerprints)
Creates physical tables in warehouse
Backfills historical data
Creates/updates views (virtual layer)
Updates environment references
Vulcan deploys changes to the target environment.
Phase 6: running and scheduling
Process new data on schedule.
Run scheduled execution
Running checks for missing intervals (compares with state), filters models by cron schedule (only processes due models), executes missing intervals, and updates the state database.
Difference from plan:
plan= Apply code changesrun= Process new data intervals
Schedule for production
Set up automation:
Cron job:
0 * * * * vulcan runCI/CD pipeline: Scheduled workflows
Kubernetes CronJob: Container orchestration
Models run automatically on schedule.
Phase 7: data quality
Validate data quality at every step.
Write assertions
Create audits/unique_users.sql:
Assertions block bad data before it reaches production. They stop execution if data quality fails. The query returns rows when it finds bad data.
Write data quality checks
Create dq/completeness.yml:
Data quality checks monitor data quality over time. They run after a successful build, are non-blocking (a failed check is recorded, not raised), and track quality metrics.
Assertions catch and block bad data.
Phase 8: API access
Expose your data through APIs.
Query via REST API
With the API service running, query your data through the REST endpoint.
Query via semantic layer
You can access data via REST, GraphQL, Python APIs, and semantic queries.
Phase 9: monitoring and iteration
Monitor, debug, and improve.
Monitor execution
Iterate
When you need to change models:
Edit model files
Run
vulcan plan(applies changes)Run
vulcan run(processes new data)
When the Data Product is already deployed: update it in place rather than deleting and redeploying it, so its API stays up. See Update a deployed Data Product.
When you need to add features:
Add new models →
vulcan planAdd semantic definitions →
vulcan planAdd assertions/checks →
vulcan planTest →
vulcan test
Complete lifecycle flow
Key commands reference
Init
vulcan init
Create project
Init
vulcan info
Verify setup
Develop
vulcan lint
Check code quality
Test
vulcan test
Run unit tests
Plan
vulcan plan
Create & apply changes
Run
vulcan run
Process new data
Query
vulcan fetchdf
Execute SQL queries
Semantic
vulcan transpile
Convert semantic to SQL
Debug
vulcan render
See generated SQL
Key concepts
Plans vs runs:
vulcan plan= Apply code/model changes (use when you modify code)vulcan run= Process new data intervals (use for scheduled execution)
Environments:
Dev/Staging: Test changes safely
Production: Deploy validated changes
Plans create isolated environments for testing
Data quality:
Assertions: block bad data (stops execution)
Checks: monitor quality (warnings only)
Tests: validate logic (before execution)
Semantic layer:
Define metrics once, use everywhere
Automatic API generation
Business-friendly query interface
Summary
Vulcan's lifecycle:
Setup → Project initialization
Develop → Write models, tests, semantics
Validate → Lint, test, assertion, check
Plan → Review and apply changes safely
Run → Process data on schedule
Expose → APIs and semantic queries
Monitor → Logs, status, debugging
Iterate → Continuous improvement
The flow is linear and predictable. Each phase builds on the previous one, and you can trace back to see what happened at each step.
This lifecycle gives you code quality, data quality, safe deployments, and continuous operation of your data pipeline.
Last updated
Was this helpful?