Skip to content

feat: support dbt latest semantic layer spec#573

Merged
b-per merged 2 commits into
mainfrom
feat/new-sl-spec-support
Apr 9, 2026
Merged

feat: support dbt latest semantic layer spec#573
b-per merged 2 commits into
mainfrom
feat/new-sl-spec-support

Conversation

@b-per
Copy link
Copy Markdown
Collaborator

@b-per b-per commented Apr 9, 2026

Summary

  • Fixes get_metric_values.sql to handle the new dbt SL spec where type_params.measure and type_params.cumulative_type_params are null (metrics are now embedded directly in models rather than referencing named measures via top-level semantic_models)
  • Adds integration_tests_sl: a copy of integration_tests migrated to the latest SL YAML spec via uvx dbt-autofix deprecations --semantic-layer
  • Runs integration_tests_sl as a third project in run_fusion_tests.sh (with a separate Snowflake schema suffix _sl to avoid naming collisions)
  • Restructures fusion.yml into two jobs: run-duckdb-tests (runs first, no credentials needed) and run-cloud-tests (needs: run-duckdb-tests), so Snowflake only runs if DuckDB passes
  • Adds dbt_integration_fusion_duckdb tox env

Test plan

  • run-duckdb-tests job passes on CI (covers all 3 integration test projects with DuckDB)
  • run-cloud-tests job only triggers after DuckDB passes
  • stg_metrics builds successfully in integration_tests_sl with the new SL spec

- Fix get_metric_values.sql to handle null type_params.measure and
  cumulative_type_params in the new SL spec (metrics embedded in models
  instead of top-level semantic_models)
- Add integration_tests_sl project: copy of integration_tests migrated
  to the latest SL YAML spec via dbt-autofix --semantic-layer
- Run integration_tests_sl as a third project in run_fusion_tests.sh
- Add dbt_integration_fusion_duckdb tox env and restructure fusion.yml
  to run DuckDB tests first, then cloud (Snowflake) only if DuckDB passes
@b-per b-per requested review from a team, dave-connors-3 and graciegoheen as code owners April 9, 2026 17:47
Comment thread .github/workflows/fusion.yml Fixed
Comment thread .github/workflows/fusion.yml Fixed
Comment thread .github/workflows/fusion.yml Dismissed
@b-per b-per merged commit afecc40 into main Apr 9, 2026
8 of 9 checks passed
@b-per b-per deleted the feat/new-sl-spec-support branch April 9, 2026 19:37
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