dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.25k stars 1.53k forks source link

Add --empty flag value to context `flags.EMPTY` #10317

Closed MichelleArk closed 1 week ago

MichelleArk commented 1 week ago

Housekeeping

Short description

We are missing the --empty flag value from the jinja context flags, making it tricky to overwrite the ref macro in a way that incorporates the value of --empty

Reported in community slack: https://getdbt.slack.com/archives/C2JRRQDTL/p1718298268904749?thread_ts=1718044905.163699&cid=C2JRRQDTL

Acceptance criteria

flags.EMPTY exists in jinja!

Suggested Tests

  1. Add unit tests :)

Impact to Other Teams

N/A

Will backports be required?

1.8

Context

No response

FishtownBuildBot commented 1 week ago

Opened a new issue in dbt-labs/docs.getdbt.com: https://github.com/dbt-labs/docs.getdbt.com/issues/5664