dbt-labs / dbt-semantic-interfaces

The shared semantic layer definitions that dbt-core and MetricFlow use.
Apache License 2.0
66 stars 13 forks source link

Interface for `SavedQueryDependencyResolver` #278

Closed plypaul closed 4 months ago

plypaul commented 4 months ago

Description

A resolver that can figure out the semantic models used by a saved query is useful for generating the execution DAG for exports / caching.

A complete dependency resolver for is complex due to recursive metric definitions, cascading filters, ambiguous group-by-items, etc. so cutting out this draft PR ahead of that to demonstrate the interface.

One of the potential longer-term solutions is a separate package that handles semantic-related resolution. The separate package would then be a dependency of the metricflow package.

Checklist

plypaul commented 4 months ago

Closing this in favor of: https://github.com/dbt-labs/metricflow/pull/1152