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

Reuse a Data Product

Build a downstream product that reads another product's published outputs, instead of rebuilding the same logic from scratch.

When one product publishes trusted output tables, another product can read them directly instead of rebuilding the same logic. The upstream product owns the source-aligned facts and dimensions. The downstream product declares those outputs as read-only inputs, transforms them, and publishes its own models, semantics, and metrics. Each product keeps its own outputs and is deployed independently.

Use this recipe before you build anything new. If an existing product already covers what you need, reuse it instead of rebuilding it. Check the catalog first (the Datasets and Hub views show what is already productized), then build on top only where you must.

This recipe uses two products:

Product
Role
What it does

customer-orders

Upstream producer

Publishes clean customer profiles and order facts

customer-insights

Downstream consumer

Reads those tables and builds revenue and health insights

The upstream product must already be applied, and its output tables must be stable and documented, before a downstream product can safely depend on them.

Steps

1. Confirm the upstream contract

The upstream product, customer-orders, is source_aligned and publishes two output tables:

customer_orders.customer_profiles   customer dimension
customer_orders.order_facts         order fact with net_revenue

These tables are the contract. order_facts exposes customer_id, order_date, status, and net_revenue as stable columns that downstream products can safely join. Apply the upstream product first:

cd customer_orders_dp && vulcan plan

2. Declare the upstream tables downstream

The downstream product, customer-insights, is consumer_aligned. Before writing any SQL, it declares which upstream tables it reads in inputs.yaml. This is the read-only contract between the two products. Vulcan uses it to validate downstream SQL and to record cross-product lineage.

- name: '"warehouse"."customer_orders"."customer_profiles"'
  columns:
    customer_id: INT
    customer_tier: TEXT
    status: TEXT
- name: '"warehouse"."customer_orders"."order_facts"'
  columns:
    order_id: INT
    customer_id: INT
    order_date: DATE
    status: TEXT
    net_revenue: DECIMAL(12, 2)

Use the fully qualified name that matches the warehouse, schema, and table the upstream product produces.

3. Build downstream models

The downstream product does not recreate customer or order logic. It reads the declared tables and layers its own analytics on top. Here, a revenue summary joins the two upstream tables:

The downstream graph now carries two kinds of lineage: external lineage back to customer-orders, and internal lineage between its own models.

4. Publish its own semantics and metrics

This is what separates reusing a product from simply reading a table: the downstream product gets its own governed query surface. Define a semantic model and a metric over the summary, and consumers of customer-insights can query customer_lifetime_value without knowing anything about the upstream product. See Semantic model and Metrics.

Best practices

  • Apply the upstream product first, then the downstream product.

  • If the upstream contract changes, update the downstream inputs.yaml before the next plan.

  • Declare every upstream table a downstream product reads in inputs.yaml, with names matching the SQL exactly.

  • Give the downstream product its own isolated state, and its own semantics and metrics.

  • Always go through inputs.yaml for governed reuse. Do not copy upstream SQL into the downstream project unless ownership of that logic is intentionally moving.

Troubleshooting

Symptom
Likely cause
Fix

Downstream plan fails to validate a referenced column

inputs.yaml is missing a table or column the SQL references

Add the missing table or column to inputs.yaml, matching the upstream schema exactly

Downstream query returns stale or missing data

The upstream product hasn't been applied since a recent change

Re-apply the upstream product, then re-plan the downstream product

Table name in inputs.yaml doesn't resolve

The name doesn't match the warehouse, schema, and table the upstream product actually produces

Use the fully qualified name exactly as the upstream product names its output

Downstream and upstream logic drift out of sync

Upstream SQL was copied into the downstream project instead of read through inputs.yaml

Read the upstream table through inputs.yaml instead of duplicating its logic

References

  • Inputs - the full inputs.yaml contract reference.

  • Semantic model - wrap a model with business-friendly dimensions and measures.

  • Metrics - define reusable, time-series metrics on top of a semantic model.

  • External models - the full reference for how Vulcan reads inputs.yaml entries.

Last updated

Was this helpful?