fivetran / dbt_quickbooks

Fivetran data models for QuickBooks using dbt.
https://fivetran.github.io/dbt_quickbooks/
Apache License 2.0
25 stars 38 forks source link

Tests error #72

Closed ron-keler closed 1 year ago

ron-keler commented 1 year ago

Is there an existing issue for this?

Describe the issue

Hi team, thanks for meeting today! As discussed, when deploying the package, got 2 tests errors:

Thanks! - Ron

Relevant error log or model output

19:05:26  81 of 167 START test not_null_stg_quickbooks__bill_linked_txn_bill_payment_id .. [RUN]
19:05:26  81 of 167 FAIL 405 not_null_stg_quickbooks__bill_linked_txn_bill_payment_id .... [FAIL 405 in 0.14s]

19:05:31  157 of 167 START test dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation  [RUN]
19:05:32  157 of 167 FAIL 21773 dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation  [FAIL 21773 in 0.27s]

Expected behavior

We discussed changing the GL unique ID to kep off account ID and not name, and consider removing the payment_id not null test

dbt Project configurations

Vanilla config, no changes made..:

# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: 'my_new_project'
version: '1.0.0'
config-version: 2

# This setting configures which "profile" dbt uses for this project.
profile: 'default'

# These configurations specify where dbt should look for different types of files.
# The `source-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]

target-path: "target"  # directory which will store compiled SQL files
clean-targets:         # directories to be removed by `dbt clean`
  - "target"
  - "dbt_packages"

# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models

# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
models:
  my_new_project:
    # Applies to all files under models/example/
    example:
      materialized: view

Package versions

packages:

What database are you using dbt with?

postgres

dbt Version

1.4

Additional Context

No response

Are you willing to open a PR to help address this issue?

fivetran-joemarkiewicz commented 1 year ago

Hi @ron-keler thanks so much for opening this issue.

I see you were able to meet with members of our team today to discuss the test failures you are experiencing. I appreciate the detail you provided in the bug report and I believe we have an understanding that a few tests need to be adjusted following the latest updates we released.

I will accept this issue and our team can pick this issue up in our next sprint. In the meantime, you may be able to downgrade the package and use the previous version to hopefully resolve the current test failure you are experiencing. If the same issue persists on the previous version, we can take a closer look and see if we can get this fix prioritized.

Thanks!

ron-keler commented 1 year ago

Thank you Joe for your help and support! The team i met with was fantastic, and the fivetran packages are terrific, quickbooks included! Real accelerator for Fivtran and dbt clients! I tried to downgrade to version 6. This resolved the dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_idsource_relation error, but I am still getting the not_null_stg_quickbooksbill_linked_txn_bill_payment_id... Looking forward to the next release! Thanks - Ron