Skip to content

Add possibility to use external models as asset dependencies #32

@lucargir

Description

@lucargir

Currently when an asset is created, only the SQLMesh dependencies are considered for the Dagster DAG.

for model, deps in instance.non_external_models_dag():

It would be useful, if the external models could also be added as dependencies to the asset.

This would allow to define SQLMesh models as downstream dependencies of dltHub pipelines for example. The name of the external model could be used to add the dependencies, and ideally, the user could also pass a translator for the external models when defining the SQLMesh asset, so that custom mappings to other Dagster assets can be made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions