Materialization behavior
Understand how Vulcan model kinds map to native Athena operations.
With a validated gateway, this is the build stage. Choose a model kind and understand its Athena operation before running it.
Materialization behavior per model kind
SQL models compile to Athena SQL (Presto/Trino family).
FULL
Table rebuild / insert-overwrite per adapter strategy
VIEW
CREATE VIEW
INCREMENTAL_BY_TIME_RANGE
Windowed delete/overwrite + insert
INCREMENTAL_BY_UNIQUE_KEY
MERGE or equivalent where supported
INCREMENTAL_BY_PARTITION
Partition-scoped overwrite
Engine-native feature support
Use Athena-specific capabilities where they add clear value.
Workgroup
work_group / ATHENA_WORK_GROUP
Primary execution knob
Glue database
schema_name
Vulcan creates schemas/tables inside
External table (Parquet)
before_all, seeds, Nilus
Source / staging layer
Managed table (Hive/Iceberg)
FULL / incrementals
Requires s3_warehouse_location
Iceberg state tables
Default adapter state path
Slower but self-contained
Views
kind VIEW
Staging / intermediate
Python models
.py models
Validate on your image
Lake Formation
Platform boundary
Apply LF grants outside Vulcan
EMR / Spark jobs
Boundary
Land outputs to S3 for Vulcan to read
Not supported
Vulcan does not manage these Athena capabilities:
Workgroup creation or resizing: no lifecycle API in Vulcan. Provision through the AWS console, Terraform, or Control Tower.
Non-default Glue catalog creation: an AWS admin boundary. Configure federated or cross-account catalogs directly in AWS.
Databricks-style Unity Catalog row policies; enforce at Glue/Lake Formation instead, and test with the service principal.
Strong
REPLACE TABLEsemantics (SUPPORTS_REPLACE_TABLE = False); use the FULL-refresh patterns Vulcan emits.Arbitrary SQL in leading block comments for correlation IDs: the Athena parser rejects some comment patterns; avoid a leading
/* ... */on statements.ML or streaming ingest inside Vulcan: out of scope. Use Kinesis Firehose, Nilus, or Glue jobs to land data in S3, then read it as external tables.
Vulcan also does not create S3 buckets, Athena workgroups, or the Glue metastore account setup; provision those out of band. s3_warehouse_location and s3_staging_dir must both be valid before apply, and there are no multi-statement transactions, so a pipeline that fails mid-run may need manual cleanup or an idempotent re-run.
Reference layering pattern (Kimball retail)
Source
External tables in a source database
S3 Parquet (before_all or Nilus)
Bronze
FULL / views
Source / external models
Silver
FULL, Python analytics
Bronze
Gold
FULL
Silver
Lifecycle DDL guards
External sources
Declare tables in inputs.yaml, or bootstrap with before_all:
Column naming for semantics
Keep snake_case consistent from SQL through semantic YAML where that's your project convention (order_date, customer_id). Match semantic dimensions/measures to model column names exactly.
Semantic models
Semantic models compile to SQL against the Glue tables Vulcan creates. Use explicit joins for multi-entity queries; cross-join-shaped queries are a primary latency and cost driver, since Athena bills on bytes scanned.
Business metrics
Heavy COUNT(DISTINCT ...) over large facts increases scanned data; pre-aggregate in Silver/Gold where possible.
Data quality
Linter
Local
None
Authoring time
Assertions
Athena during materialization
Per query scan
Every run
Unit tests (tests/)
Local (DuckDB)
None on Athena
Pre-merge
Audits (audits/)
Athena post-run
Per query
Post-run
Data quality (dq/)
Athena after a successful run or plan apply
Per query
Drift / freshness
Lineage and version rollback
Lineage is computed from Vulcan's SQL parse. Cross-database references (for example retail_source.orders_ext) need to be declared, or visible to the linter, in inputs.yaml.
vulcan rollback replays prior plan strategies; incrementals re-touch affected windows and incur scan charges when they do.
Before you ship checklist (Data Product developer)
Next step
After models deploy, make data available through Serve, or skip straight to a ready-made shape in Deployment recipes.
Last updated
Was this helpful?