Skip to content

DbtCLI injects --target-path which is unsupported in dbt-core >= 1.9 #248

@alexandrahuey

Description

@alexandrahuey

Describe the issue

Bug Description

The DbtCLI task in plugin-dbt 1.3.0 and 1.3.1 automatically injects --target-path target
into all dbt commands. This flag was removed in dbt-core 1.9, causing all DbtCLI tasks to fail
with the following error:

Error

Error: No such option: --target-path (Possible options: --log-path, --target)

Steps to Reproduce

  1. Use kestra/kestra:latest-lts (digest sha256:808b7bc5) which bundles plugin-dbt 1.3.1
  2. Install dbt-core >= 1.9 in the container
  3. Run any DbtCLI task
  4. The injected command looks like:
    dbt deps --project-dir /app/dbt --log-format json --target-path target --log-path logs

Expected Behavior

--target-path should not be injected, or should only be injected for dbt-core < 1.9

Environment

  • plugin-dbt: 1.3.1
  • dbt-core: 1.10.20
  • Kestra image: kestra/kestra:latest-lts (sha256:808b7bc5)

Workaround

Downgrade plugin-dbt to 1.2.3 in the Dockerfile by replacing the JAR manually.

Environment

  • Kestra Version: develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/pluginPlugin-related issue or feature request

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions