Skip to content

[Bug] --empty doesn't work with incremental models #1592

@colombian-cannonball

Description

@colombian-cannonball

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Which packages are affected?

  • dbt-adapters
  • dbt-tests-adapter
  • dbt-athena
  • dbt-athena-community
  • dbt-bigquery
  • dbt-postgres
  • dbt-redshift
  • dbt-snowflake
  • dbt-spark

Current Behavior

Using --empty with incremental models does nothing.

Expected Behavior

It should append limit 0 to refs like it does when using it on table models.

Steps To Reproduce

  1. Create an incremental model
  2. Build it using --empty
  3. It will build the model without limit 0 on refs

Relevant log output

Environment

- OS:
- Python:
- dbt-adapters:
- <adapter>:

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage:productIn Product's queuetype:bugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions