Skip to content

[Feature] Possibility to run a custom dbt command #1152

Open
@michal-mrazek

Description

Description

Helo,
my apologies if this has been asked already. AFAIK cosmos supports only a limited set of dbt operations and in our workflow, we need to run also other dbt commands. For example dbt source freshness. Is there a way we can run this dbt command without the BashOperator, rather in cosmos, using the same settings and profiles please?

What we currently do is that we build a custom operator on top of DbtVirtualenvBaseOperator and make the self._base_cmd configurable based on the input. I wonder if this would be the correct way or we can do it better with cosmos? Thanks :)

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Assignees

No one assigned

    Labels

    area:executionRelated to the execution environment/mode, like Docker, Kubernetes, Local, VirtualEnv, etcenhancementNew feature or requestexecution:virtualenvRelated to Virtualenv execution environmentstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closedtriage-neededItems need to be reviewed / assigned to milestone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions