Closed fivetran-avinash closed 1 year ago
Thanks for opening this issue @fivetran-avinash.
As you mentioned in the issue description, I believe replacing the following lines with the same for/conditional logic that you used here should resolve the issue and ensure the logic only runs if customers have included components
in their issue_file_history_columns variable:
This has been addressed in the merged rollback linked above. As such, I will close this issue.
Is there an existing issue for this?
Describe the issue
We recently introduced new logic into
jira__daily_issue_field_history
that accounts for pullingcomponents
data directly into our model to avoid any overlap withfield_option
. However, this is currently throwing an error because we did not add the necessary variable logic indbt_project.yml
for when it isn't present insideissue_field_history
.Adding
is necessary.
However, we will want this logic to compile only if the customer is using the components table. We might recommend using {%
if var('jira_using_components', True) %}
aboveissue_field_history_columns
since we wouldn't want to call it if components wasn't a part of the model. See examples in the newest version ofjira__daily_issue_field_history
.Relevant error log or model output
Expected behavior
The models should compile but it is not finding the components column inside
daily_issue_field_history
if it is not set as a field.dbt Project configurations
Package versions
jira
0.12.1
What database are you using dbt with?
bigquery
dbt Version
dbt=1.3.0
Additional Context
No response
Are you willing to open a PR to help address this issue?