Repository navigation
Metric Contract crosswalk: dbt MetricFlow, ODPS, and a four-standard example - #41
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Makes the Metric Contract mappable to the standards around it. No schema changes; existing documents validate unchanged.
reference/spec/README.md): everyMetricContractfield against Apache Ossie, dbt MetricFlow, ODCS and ODPS, non-normative.config.meta.smf; aBindingwithplatform: dbtpoints back.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.Bindingand anexpression_snapshoton the dbtBinding. These files are illustrative and are skipped by the CLI.contracts-in-context,metric-contract,works-with,metamodelandgaps.Checks
validate --strictpasses forreference/examples/gross-marginandreference/examples/northwindtestpasses for both examples (7 / 0 / 1 and 9 / 0 / 2)python reference/tools/check-links.pyreports 0 problemspython site/build.py && mkdocs build --strictpassesBindingdocuments from a dbt MetricFlow project #27 (bindings from a dbt project) and Proposal: contract versions — where earlier versions live, and which dataset version a contract was built on #38 (which dataset version a contract was built on; left untouched here).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 theconfig.meta.smfpointer present insemantic_manifest.json.For the owner to decide
config.meta.smfkey name is a proposal, modelled on the Ossiecustom_extensionsconvention.🤖 Generated with Claude Code
https://claude.ai/code/session_014WtSirHGVmB9YgseQD7HBZ
Generated by Claude Code