Skip to content

Commit

Permalink
Merge pull request #50 from fivetran/bugfix/join_on_source_relation
Browse files Browse the repository at this point in the history
Bugfix/join on source relation
  • Loading branch information
fivetran-catfritz authored Jul 12, 2023
2 parents 63a1e28 + ed2c330 commit ff5dedd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
target/
dbt_modules/
logs/
.DS_Store
integration_tests/.DS_Store
dbt_packages/
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# dbt_quickbooks_source v0.9.1
[PR #49](https://github.com/fivetran/dbt_quickbooks_source/pull/49) includes the following updates:
## 🎉 Features
- Added description for column `source_relation` to the documentation. ([#49](https://github.com/fivetran/dbt_quickbooks_source/pull/49))
- Added description for column `source_relation` to the documentation.
## 🚘 Under the Hood
- Updated partitioning in `stg_quickbooks__credit_card_payment_txn` to include `source_relation`.

# dbt_quickbooks_source v0.9.0
## 🎉 Feature Update 🎉
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion models/stg_quickbooks__credit_card_payment_txn.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final as (
currency_id,
transaction_date,
_fivetran_deleted,
row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,
row_number() over (partition by id, updated_at, source_relation order by source_relation, updated_at desc) = 1 as is_most_recent_record,
source_relation
from fields
)
Expand Down

0 comments on commit ff5dedd

Please sign in to comment.