-
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
[Regression] dbt --quiet ls --output json
should not print warnings in 1.6 and 1.7
#10105
Comments
Thanks for reporting this @darist ! Digging into the detailsLooks like the change that added the This would also likely be an issue in 1.6 and 1.8 because this is included in these PRs as well: Things I triedAttempt 1Using dbt-core 1.7.14, I tried both of the following, neither of which had any effect: dbt --warn-error-options '{silence: all}' list -q
dbt --warn-error-options '{"silence": "ProjectFlagsMovedDeprecation"}' list -q Log output:
Attempt 2Attempting the same commands in dbt-core 1.8.0rc1 raised a ValidationError, and the stack trace ended with:
Attempt 3I also tried adding this to flags:
warn_error_options:
silence:
- ProjectFlagsMovedDeprecation This gave a different error:
Next stepsIn the ideal world for dbt-core 1.6 and 1.7, both errors and warnings should be completely silenced by Labeling this as |
dbt --quiet ls --output json
should not print warningsdbt --quiet ls --output json
should not print warnings in 1.6 and 1.7
@dbeatty10 I am wondering how I should handle this with dbt 1.8. Personally, I think it would be good to print out warnings and errors as standard error, not as standard out. By doing so, those doesn't disturb output. Our issue is that the warning message appears in standard out. So, we can't parse resulting output of a dbt Macro with |
Trying to upgrade to v1.8.4, but this is still a problem. Any idea on ETA for a fix? Thanks! |
@darist we don't have a timeline for this. But I agree that all warnings should be suppressed whenever the See below for an example where the My (totally unconfirmed) guess is that it has something to do with
|
@yu-iskw I think the only workaround right now is to make the code change to make this warning go away entirely -- in this case, move content from the |
Is this a new bug in dbt-core?
Current Behavior
I observe this problem with dbt-core 1.7.14. I do not observe this problem with dbt-core 1.7.11
The following command prints a warning, which makes the output invalid json
Expected Behavior
Output should be valid json
Steps To Reproduce
profiles.yml
file:Then execute
With dbt-core 1.7.14:
With dbt-core 1.7.11
Relevant log output
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
The text was updated successfully, but these errors were encountered: