-
Notifications
You must be signed in to change notification settings - Fork 174
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
[CT-480] seed: Non-atomic update of seed tables #135
Labels
bug
Something isn't working
Comments
github-actions
bot
changed the title
seed: Non-atomic update of seed tables
[CT-480] seed: Non-atomic update of seed tables
Apr 12, 2022
Hi @adamantike, thanks for your very detailed report. It looks like there is another ticket outlining how to recreate the issue and observe duplicate data in #112. I'm going to close this ticket as a duplicate, so please feel free to join the discussion over there as well. |
nathaniel-may
added
bug
Something isn't working
duplicate
and removed
bug
Something isn't working
triage
labels
Apr 19, 2022
duplicate of #112 |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running
dbt seed
, tables seem to be updated non-atomically, so there's a brief period of time when tables are empty. This could break queries or workflows that are expected to run at the same time asdbt seed
.Steps To Reproduce
requirements.txt
,dbt_project.yml
, andprofiles.yml
. Configure Snowflake credentials in theprofiles.yml
file.data
folder, and generate a seeds file with many lines (I have been able to reproduce this issue with small files, but having bigger ones makes reproducibility easier as the table remains empty for more time, whileINSERT
s are being executed):SELECT
s one after another.dbt seed
command in a separate shell:dbt seed --profiles-dir .
Expected behavior
The expected behavior would be for the truncate and insert over the seed tables to run atomically, so queries that run at the same time that the
dbt seed
command not to receive an empty result set.Screenshots and log output
Running the SnowSQL command while
dbt seed
will show that the table is empty sometimes:System information
The output of
dbt --version
:The operating system you're using: Linux (Manjaro)
The output of
python --version
: Python 3.7.12 (virtualenv)The text was updated successfully, but these errors were encountered: