Repository navigation
Conversation
…ign_to_month` ## Overview Changes the declared type of the `align_to_month` argument on `mart_lookback_start` in `macros/_macros.yml` from `boolean` to `bool`. This is a one-line, documentation-only change. The macro's SQL is untouched. ## Update type - breaking / non-breaking - [x] Minor bug fix - [ ] Documentation improvements - [ ] Quality of Life improvements - [ ] New features (non-breaking change) - [ ] New features (breaking change) - [ ] Other (non-breaking change) - [ ] Other (breaking change) - [ ] Release preparation ## What does this solve? dbt validates the argument types declared in macro YAML (`validate_macro_args`, on by default in dbt 1.12). `boolean` is not one of the type names it accepts, so every project that installs the package gets this warning on each parse: ``` [WARNING]: Argument align_to_month in the yaml for macro mart_lookback_start has an invalid type. ``` Projects can only work around it by silencing `InvalidMacroAnnotation` for everything, which also hides real problems in their own macros. I checked every argument type declared in the package's YAML with dbt's own validator (`dbt.parser.schemas.is_valid_type`). This is the only one it rejects: it returns `False` for `boolean` and `True` for `bool`.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Changes the declared type of the
align_to_monthargument onmart_lookback_startinmacros/_macros.ymlfrombooleantobool. This is a one-line, documentation-only change. The macro's SQL is untouched.Update type - breaking / non-breaking
What does this solve?
dbt validates the argument types declared in macro YAML (
validate_macro_args, on by default in dbt 1.12).booleanis not one of the type names it accepts, so every project that installs the package gets this warning on each parse:Projects can only work around it by silencing
InvalidMacroAnnotationfor everything, which also hides real problems in their own macros.Outstanding questions
None.
What databases have you tested with?
I checked it with
dbt parse --no-partial-parse --show-all-deprecationson dbt Core 1.12.6, where the warning disappears.