Skip to content

Default grouping for dbt sources #21626

Answered by rexledesma
fredonia88 asked this question in Q&A
Discussion options

You must be logged in to vote

I've tried adding necessary meta tags to the nodes themselves in the sources.yml file and to the dbt_project.yml file to group them, but its not working. How do I group my dbt sources so they aren't grouped under default?

A previous discussion answers this question. #16470 (comment)

For example, to automatically create SourceAsset's for all of your dbt sources, you could do something like:

def build_dbt_sources(manifest: Mapping[str, Any], dagster_dbt_translator: DagsterDbtTranslator) -> Sequence[SourceAsset]:
    return [
        SourceAsset(
             key=dagster_dbt_translator.get_asset_key(dbt_resource_props),
             group_name=dagster_dbt_translator.get_group_name(dbt_reso…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cmpadden
Comment options

@fredonia88
Comment options

@rexledesma
Comment options

Answer selected by rexledesma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
integration: dbt Related to dagster-dbt
3 participants