-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] --empty
flag should be exposed in flags
variable
#10152
Comments
Thanks for reaching out @jlucas91 ! This sounds more like a feature request to me. Can you share more why this seems like a bug to you? |
I think it could go either way and no worries on my end if you'd prefer to reclassify. It felt like a potential unintentional miss in the --empty flag release to me, which is why I leaned towards calling it a bug. While the documentation does state the code is the source of truth for what flags are included in the variable, it seemed strange for a significant and first class flag to be omitted from the interface. |
For what it's worth, I do buy this as a thing we should do! Among other things, this might enable us to provide users with slightly more flexibility & customization while working around known edge cases of As an example: |
flags
variableflags
variable
flags
variable--empty
flag should be exposed in flags
variable
That's exactly how I bumped into the
That's pretty gross and will get nicer with the |
Hi @jlucas91 - this feature has a crucial bug ( If you run
In the model I "info-print" the
This unrelated bug prevents us from reliably using (P.S. - I didn't manage to find this bug mentioned anywhere - should I open a separate issue to have it addressed? Thanks!) |
@dsillman2000 Yes, that would be great if you open a separate issue 👍 |
Resolved by #10315 |
Is this a new bug in dbt-core?
Current Behavior
When running dbt 1.8 EMPTY is not present on the flags variable.
Expected Behavior
When using the
--empty
flag, I would expect EMPTY to be set to true. This is would bring it in line with other first class flags like full-refresh and fail-fast.Steps To Reproduce
./dbt run --empty
{{ print(flags) }}
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
It does not appear to be included in the flags module https://github.com/dbt-labs/dbt-core/blob/HEAD/core/dbt/flags.py
The text was updated successfully, but these errors were encountered: