Skip to content

Commit

Permalink
Merge pull request #56 from brandonrf94/filter-deleted-accounts
Browse files Browse the repository at this point in the history
Filter deleted accounts from stg table
  • Loading branch information
fivetran-avinash authored Oct 28, 2024
2 parents 46c53dc + cd10b8a commit dbcb41e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions macros/get_account_columns.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% macro get_account_columns() %}

{% set columns = [
{"name": "_fivetran_deleted", "datatype": "boolean"},
{"name": "_fivetran_synced", "datatype": dbt.type_timestamp()},
{"name": "account_number", "datatype": dbt.type_string()},
{"name": "account_sub_type", "datatype": dbt.type_string()},
Expand Down
3 changes: 1 addition & 2 deletions models/stg_quickbooks__account.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ final as (
fully_qualified_name,
updated_at,
source_relation,
_fivetran_deleted

_fivetran_deleted
from account
)

Expand Down

0 comments on commit dbcb41e

Please sign in to comment.