Warn-error handler for all warnings
| Loading table... |
By default, the require_all_warnings_handled_by_warn_error flag is set to false.
When you set require_all_warnings_handled_by_warn_error to true, all warnings raised during a run are routed through the --warn-error / --warn-error-options handler. This ensures consistent behavior when promoting warnings to errors or silencing them. When the flag is false, only some warnings are processed by the handler while others may bypass it.
Note that enabling this for projects that use --warn-error (or --warn-error-options='{"error":"all"}') may cause builds to fail on warnings that were previously ignored. We recommend enabling it gradually.
Impact when the flag matures
This only affects projects that use warn_error: true or --warn-error — common in CI or in dbt platform production jobs configured for strict mode. Projects without --warn-error are not affected.
Example warnings that switch from "log only" to "error" for warn_error: true users after the flag matures:
JinjaLogWarning— emitted for column types declared for non-existent seed columnsWarnStateTargetEqual— emitted when the--stateand--targetdirectories are the same pathSelectExcludeIgnoredWithSelectorWarning— emitted when the legacy--selectorflag is combined with--selector--excludeRunResultWarningMessage— emitted when a test or model returnsWARNstatus- Various adapter-level warnings not previously handled by
--warn-error
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.