Skip to content

Commit

Permalink
Merge pull request #3 from fivetran/minor_bug_fix
Browse files Browse the repository at this point in the history
invoice_line casting to dbt_utils
  • Loading branch information
fivetran-joemarkiewicz authored Feb 1, 2021
2 parents 5262093 + 8eacdde commit 5b34d27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'quickbooks_source'
version: '0.1.0'
version: '0.1.1'

require-dbt-version: [">=0.18.0", "<0.20.0"]

Expand Down
6 changes: 3 additions & 3 deletions models/stg_quickbooks__invoice_line.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ final as (
description,
quantity,
bundle_quantity,
cast(bundle_id as {{ 'int64' if target.name == 'bigquery' else 'bigint' }}) as bundle_id,
cast(account_id as {{ 'int64' if target.name == 'bigquery' else 'bigint' }} ) as account_id,
cast(item_id as {{ 'int64' if target.name == 'bigquery' else 'bigint' }}) as item_id
cast(bundle_id as {{ dbt_utils.type_int() }}) as bundle_id,
cast(account_id as {{ dbt_utils.type_int() }}) as account_id,
cast(item_id as {{ dbt_utils.type_int() }}) as item_id
from fields
)

Expand Down

0 comments on commit 5b34d27

Please sign in to comment.