Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] <title>DBT - Models running fine when ran with select, but are failing when using Tags/Threads #926

Open
3 of 11 tasks
surya-procore opened this issue Mar 19, 2025 · 1 comment
Labels
type:bug Something isn't working as documented

Comments

@surya-procore
Copy link

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Which packages are affected?

  • dbt-adapters
  • dbt-tests-adapter
  • dbt-athena
  • dbt-athena-community
  • dbt-bigquery
  • dbt-postgres
  • dbt-redshift
  • dbt-snowflake
  • dbt-spark

Current Behavior

We upgraded our dbt to 1.9 version today. When we're running dbt snapshot with tags, one snapshot failure leading to all other snapshot failures.
On Snowflake query history, we're seeing this error - Your transaction was aborted. All statements will be ignored until you issue a COMMIT or a ROLLBACK.
Also, when we run single snapshot using select, it's running fine. But when we run with tag, it's failing
We have validated and make sure fail fast is false and there's no dependency between snapshots. Need some help here on understanding the actual root cause

Expected Behavior

Run rest of the models which are not dependent to the failing snapshot

Steps To Reproduce

1.Have a snapshot with duplicated records, which fails with Your transaction was aborted. All statements will be ignored until you issue a COMMIT or a ROLLBACK.
2. Have few snapshots running with the same tag as above snapshot
3. Run the dbt snapshot --select:

Relevant log output

Environment

- OS:Linux/Windows/container
- Python:3.9.6
- dbt-adapters:1.9.2
- <adapter>:

Additional Context

No response

@surya-procore surya-procore added triage:product In Product's queue type:bug Something isn't working as documented labels Mar 19, 2025
@amychen1776
Copy link
Contributor

Hello @surya-procore ! When you say tags, are they dbt tags or snowflake object tags?

@amychen1776 amychen1776 removed the triage:product In Product's queue label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

2 participants