Closed wwilliamsnuwest closed 1 year ago
@Csgoodman FYI in case you're in a position to help!
Ok, I found a way to just disable the source tables to avoid the freshness check that is in the netsuite package. I put this block of code in my dbt_project.yml file, and that seemed to do the trick (in both dev and prod.)
The issue raised still feels like a bug since I would think I wouldn't have to explicitly disabled the 'netsuite' stuff when I am clearly selecting just the 'netsuite2' data model in my dbt_project.yml file already, but maybe I'm just confused or am doing something else wrong?
sources:
netsuite:
netsuite:
+enabled: false
netsuite_source:
netsuite:
+enabled: false
Hey @wwilliamsnuwest! I am inclined to agree that this does seem like a bug in the package and agree with you that if you have declared netsuite_schema: 'netsuite2_suiteanalytics'
then the package should only run freshness on just one source are the other. I am adding this into the queue to get looked into closer by our team at the next available sprint. Thank you for bringing this to our attention!
Awesome; thanks for investigating further Sheri!
From: Sheri Nguyen @.> Sent: Monday, December 12, 2022 7:51 PM To: fivetran/dbt_netsuite @.> Cc: Ward Williams @.>; Mention @.> Subject: Re: [fivetran/dbt_netsuite] [Bug] dbt source snapshot-freshness erroneously checks netsuite source tables as well as netsuite2 tables when only netsuite2 is supposed to be modeled (Issue #57)
Hey @wwilliamsnuwesthttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwwilliamsnuwest&data=05%7C01%7Cwwilliams%40nuwestgroup.com%7C705b7f603c2b4dfec74f08dadcbd5bb7%7C5f334365592d48068c5dc237622d6bfe%7C0%7C0%7C638065003135455939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MJFFVsT7C0FZLnNFeD%2FV47k52cdHWsX8Qs5Sq6lZm6s%3D&reserved=0! I am inclined to agree that this does seem like a bug in the package and agree with you that if you have declared netsuite_schema: 'netsuite2_suiteanalytics' then the package should only run freshness on just one source are the other. I am adding this into the queue to get looked into closer by our team at the next available sprint. Thank you for bringing this to our attention!
— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffivetran%2Fdbt_netsuite%2Fissues%2F57%23issuecomment-1347705777&data=05%7C01%7Cwwilliams%40nuwestgroup.com%7C705b7f603c2b4dfec74f08dadcbd5bb7%7C5f334365592d48068c5dc237622d6bfe%7C0%7C0%7C638065003135455939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2TBJZ4Fpoy6CN4qJCnz3Z1biaqrY3MgCJeXPM4csick%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYA77U6EE55Y2IZCDHWNMJLWM7XFFANCNFSM6AAAAAASYTRECY&data=05%7C01%7Cwwilliams%40nuwestgroup.com%7C705b7f603c2b4dfec74f08dadcbd5bb7%7C5f334365592d48068c5dc237622d6bfe%7C0%7C0%7C638065003135455939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=LXlPmkcTNf%2FmzUQtKGg%2Be3ln3cccDRPuIwIvSu3eY%2B4%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
hi there @wwilliamsnuwest i think this may be occurring due to conflicting dbt-core versions. so we disable netsuite vs netsuite2 source tables dynamically (based on netsuite_data_model
) using the enabled
config
. this property was rolled out for sources in dbt v1.1.0 and it sounds like y'all are on v1.0.0? could you possibly update and try it out again? thanks!
^ just tested this out myself in a virtual environment.
in dbt v1.0.0, all netsuite source tables are freshness-tested regardless of the value of netsuite_data_model
. when i upgraded dbt to v1.1.0, this no longer occurred, and source freshness tests ran dynamically. so i think the solution here would be to upgrade your dbt version to at least v1.0.0
Awesome; thanks Jamie!
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Jamie Rodriguez @.> Sent: Tuesday, December 27, 2022, 10:49 AM To: fivetran/dbt_netsuite @.> Cc: Ward Williams @.>; Mention @.> Subject: Re: [fivetran/dbt_netsuite] [Bug] dbt source snapshot-freshness erroneously checks netsuite source tables as well as netsuite2 tables when only netsuite2 is supposed to be modeled (Issue #57)
^ just tested this out myself in a virtual environment.
in dbt v1.0.0, all netsuite source tables are freshness-tested regardless of the value of netsuite_data_model. when i upgraded dbt to v1.1.0, this no longer occurred, and source freshness tests ran dynamically. so i think the solution here would be to upgrade your dbt version to at least v1.0.0
— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffivetran%2Fdbt_netsuite%2Fissues%2F57%23issuecomment-1366103564&data=05%7C01%7Cwwilliams%40nuwestgroup.com%7Cafa6c6b0ca35497ffb0a08dae83b071b%7C5f334365592d48068c5dc237622d6bfe%7C0%7C0%7C638077637487183882%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5wZ1rFqT9UGrzPOKHAWDGSXdaIvA43xEmy8jfAqVluE%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYA77U2NQVCT3OOMHQSXRRTWPM22BANCNFSM6AAAAAASYTRECY&data=05%7C01%7Cwwilliams%40nuwestgroup.com%7Cafa6c6b0ca35497ffb0a08dae83b071b%7C5f334365592d48068c5dc237622d6bfe%7C0%7C0%7C638077637487340090%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CtEnyPstGmjV2UeC1aC3BoE6Bp265%2FHlUVzoOfxvmDU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
sweet will close this out then! but if the issue persists for some reason feel free to open it back up 🤠
Is there an existing issue for this?
Describe the issue
I have a check on source freshness running and am using the netsuite2 bit of the dbt netsuite package. However, the source freshness check (dbt source snapshot-freshness command) is checking freshness for BOTH the netsuite as well as the netsuite2 sources, and therefore returning errors for all the (stale/non-existent) netsuite source tables. Instead, I want source freshness to just check netsuite2 tables.
How can I turn off the netsuite checking? If this configurable, or is this something that has to be fixed in the dbt netsuite package code itself?
Thanks! Ward
Relevant error log or model output
Expected behavior
I want source freshness to just check netsuite2 tables since in my dbt_project.yml file I've set 'netsuite_data_model: netsuite2'.
vars: netsuite_database: 'pc_fivetran_db' netsuite_schema: 'netsuite2_suiteanalytics' netsuite_data_model: netsuite2
My packages.yml file has this:
packages:
dbt Project configurations
vars: netsuite_database: 'pc_fivetran_db' netsuite_schema: 'netsuite2_suiteanalytics' netsuite_data_model: netsuite2 netsuite: transaction_lines_pass_through_columns:
Package versions
packages:
What database are you using dbt with?
snowflake
dbt Version
1.0
Additional Context
No response
Are you willing to open a PR to help address this issue?