Skip to content

Metric Contract crosswalk: dbt MetricFlow, ODPS, and a four-standard example - #41

Merged
anykolaiszyn merged 1 commit into
mainfrom
reference/metric-contract-dbt-odps-crosswalk
Oct 10, 2026
Merged

anykolaiszyn merged 1 commit into
mainfrom
reference/metric-contract-dbt-odps-crosswalk

Conversation

@anykolaiszyn

Copy link
Copy Markdown
Contributor

What this does

Makes the Metric Contract mappable to the standards around it. No schema changes; existing documents validate unchanged.

  • Crosswalk (reference/spec/README.md): every MetricContract field against Apache Ossie, dbt MetricFlow, ODCS and ODPS, non-normative.
  • dbt MetricFlow: a non-normative field mapping (dbt 1.12 YAML spec) and a linking convention. The dbt metric points at its contract under config.meta.smf; a Binding with platform: dbt points back.
  • ODPS: how a data product points at a Metric Contract with authoritativeDefinitions, and how its output port names the data contract version behind it. The docs now treat ODPS data products separately from ODCS data contracts.
  • Gross margin example: Product Gross Margin written out in each standard (a dbt metric, an Ossie model, two ODCS data contracts, an ODPS data product), plus an Ossie Binding and an expression_snapshot on the dbt Binding. These files are illustrative and are skipped by the CLI.
  • Framework docs: plain-language updates to contracts-in-context, metric-contract, works-with, metamodel and gaps.

Checks

Also checked outside the repo's own checks: the ODCS, ODPS and Ossie example files validate against the upstream JSON Schemas (ODCS 3.2.0, ODPS 1.1.0, Ossie 0.2.0.dev0), and the dbt file parses with dbt-core 1.12.5 with the config.meta.smf pointer present in semantic_manifest.json.

For the owner to decide

  • The config.meta.smf key name is a proposal, modelled on the Ossie custom_extensions convention.

🤖 Generated with Claude Code

https://claude.ai/code/session_014WtSirHGVmB9YgseQD7HBZ


Generated by Claude Code

…example

Add a field crosswalk of MetricContract against Apache Ossie, dbt MetricFlow,
ODCS and ODPS; a non-normative dbt field mapping and linking convention
(config.meta.smf); and how an ODPS data product points at a Metric Contract.
Write Product Gross Margin out in each standard in the gross margin example.
Treat ODPS data products separately from ODCS data contracts in the docs.
No schema changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WtSirHGVmB9YgseQD7HBZ
@anykolaiszyn
anykolaiszyn merged commit 8f254d7 into main Oct 10, 2026
4 checks passed
@anykolaiszyn
anykolaiszyn deleted the reference/metric-contract-dbt-odps-crosswalk branch October 10, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants