Closed RivkiHofman closed 1 year ago
Hi @RivkiHofman thanks for reaching out and creating this issue.
I am currently looking into this issue and appreciate your insight into where the issue may be originating. I will post back once I have narrowed down the issue and have identified a possible resolution.
Hi @RivkiHofman thanks so much for pointing us in the right direction in regards to what may be going wrong with the incremental strategy. You were completely correct that the status join is what was returning the inaccurate status data on incremental runs.
I was able to open the above PR that should resolve this issue in our next release of the package. If you have availability, you can test these changes using the below packages.yml config in place of the official Jira version.
packages:
- git: https://github.com/fivetran/dbt_jira.git
revision: bugfix/status-id-matching
warn-unpinned: false
Please be aware though that this is built off our latest version of the package (v0.12.2) as opposed to the version you highlighted in this ticket (v0.9.0). Let me know if you are able to try the work in progress branch. Thanks again!
Hi @fivetran-joemarkiewicz
I tested this version and it works well.
Thanks for the quick fix, I really appreciate it. I'm going on a vacation in the next two weeks, so when I will come back I will change the package version.
Thank you very much and have a good weekend.
Thanks again for helping us through identifying this issue and zeroing in on what the issue was. The latest release (v0.13.0
) takes the branch you tested above into consideration. Therefore, the issue should be resolved upon upgrading to the latest version.
I will close out this issue, but please feel free to reopen if the issue persists on your end.
Thank you very much for your quick handling and kind support.
Is there an existing issue for this?
Describe the issue
Hi
Regarding the field : status in table : JIRA__DAILY_ISSUE_FIELD_HISTORY. When I run full running the field populate fantastic, but when I run incremental running the field populate with null values. I investigate the code and see that in the high version of package(version: 0.9.0) the value in the table is status_name, in the low version(version: 0.6.0) the value is status_id, and when the value is status_id the problem not happen, because in high version the join is between status_id and status_name:
In this table status_id:
select * from BIPRODDB.dwh_actimize_jira.int_jira__field_history_scd where valid_starting_on >= (select max(date_day) from BIPRODDB.dwh_actimize_jira.jira__daily_issue_field_history )
In this table status_naem:
select * from BIPRODDB.dwh_actimize_jira.jira__daily_issue_field_history where date_day = (select max(date_day) from BIPRODDB.dwh_actimize_jira.jira__daily_issue_field_history )
And if the value arrived from the second table(most_recent_data) and join to status table with status_id, it will be null...
Relevant error log or model output
No response
Expected behavior
I expect to get the last value of status and not null, need to change or remove the join to status table, in cases that the value arrived from target table and not from the increment table.
dbt Project configurations
name: 'actimize_project' version: '1.0.0' config-version: 2
Package versions
packages:
What database are you using dbt with?
snowflake
dbt Version
dbt Version : 1.3
Additional Context
No response
Are you willing to open a PR to help address this issue?