-
Notifications
You must be signed in to change notification settings - Fork 122
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-3521] [Feature] Remove REFRESH
from snowflake_refresh_snowpipe
#250
Comments
Hey! It sounds like your dbt command is completing successfully, when actually the underlying execution statements have not yet completed. Could you give us some more insight into your specific situation? Ideally, we'd want behavior such that when the dbt command has completed, it has actually completed. |
Hello!
Yes precisely. We opened a ticket in Snowflake customer support to try and fix that. |
Hello! In case it can help, so far the only lead we have for the shenanigan described above is :
We are uncertain wether this is the source of the current behaviour, but its our current most likely explanation with our current knowledge |
Nice troubleshooting @clementmg-getaround and @olperri ! Given your findings, I'm going to transfer this issue to dbt-external-tables. |
REFRESH
from snowflake_refresh_snowpipe
hey @clementmg-getaround @olperri is my understanding here correct?
Rather than remove the SQL statement about dbt-external-tables/macros/common/refresh_external_table.sql Lines 5 to 7 in 21428bc
I've opened #300, would y'all please let me know if this solution works for you? |
Thanks @dataders for looking into this! 🙏 To be fully transparent, I cannot really confirm anything :
Sorry for this "non-answer" but I'll ping the analytics-engineers in our org though as they might have an opinion or could be able to confirm |
Remove
REFRESH
from here since the Snowflake docs say that:The original feature request transferred from dbt-core follows below:
Is this your first time submitting a feature request?
Describe the feature
The idea is to create the famous sleep/wait command, that is present across multiple frameworks, and that simply allows the worker to wait a defined amount of time:
dbt sleep 3
Describe alternatives you've considered
Alternatives were hacky really: launching some impactless commands to mimic a sleep behavior.
We also thought of splitting the dbt job in two, schedule their execution through an external tool, which supports sleep command (Airflow). We believe dbt should possess that power.
Who will this benefit?
This known command can be very useful in multiple situations.
In our case, a dbt job scheduled two distinct tasks.
And because of external shenanigans (related to snowflake pipes), the first job is marked as finished by dbt when in fact it is still running. Therefore, the second job starts too early.
A simple
dbt sleep
with a custom time would prevent that unwanted behavior.I am positive this feature could help solve similar issues across various platforms.
Are you interested in contributing this feature?
Sure!
Anything else?
No response
The text was updated successfully, but these errors were encountered: