Skip to content

dbt selector logic not working #153

Description

@aeparshin

I've tried calling a dbt selector with a DbtRunOperator, but it just ignores my selectors.yml file and makes a 'dbt run' of the full project.

Since DbtRunOperator is not accepting 'selector' as an argument and only accepts 'selector_name' here's how I tried to call it:

from airflow_dbt_python.operators.dbt import (
 DbtRunOperator)

    dbt_run_task1 = DbtRunOperator(
    task_id='dbt_run_task1',
    selector_name=['my_selector'],

I suspect DbtRunOperator should be accepting 'selector' as an argument of string type. I tried to change the source code locally for DbtRunOperator to accept 'selector' and calling it from airflow plugins directory. It worked as expected by running only models listed in the selectors.yml

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions