You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enabled: "{{ var('ad_reporting__amazon_ads_enabled', true) }} and {{ var('amazon_ads__portfolio_history_enabled', true) }}"
This results in an admittedly gross validation error in dbt-core:
hologram.ValidationError: 'False and True' is not of type 'boolean'
Failed validating 'type' in schema['properties']['enabled']:
{'default': True, 'type': 'boolean'}
On instance['enabled']:
'False and True'
Change to:
config:
enabled: "{{ var('ad_reporting__amazon_ads_enabled', true) and var('amazon_ads__portfolio_history_enabled', true) }}"
(Notice the condition is now fully inside the Jinja, rather than templating a string)__
Is there an existing issue for this?
Describe the issue
This results in
"False and True"
, which is not a valid boolean value:dbt_amazon_ads_source/models/src_amazon_ads.yml
Lines 167 to 168 in ba849f3
This results in an admittedly gross validation error in
dbt-core
:Change to:
(Notice the condition is now fully inside the Jinja, rather than templating a string)__
Relevant error log or model output
No response
Expected behavior
Does not raise validation error
dbt Project configurations
Package versions
What database are you using dbt with?
snowflake
dbt Version
Additional Context
No response
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: