-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add table rename at the end of each refresh #57
Comments
Hi @nbenezri thanks for opening this issue! Just to confirm I understand, are you saying that after the refreshed table gets created again, you're unable to query from it? But by renaming the table then you can? I'm having trouble understanding why it's unable to be queried in the first place. Or, can you query in dev, just not in prod? |
When the refreshes going on it is unavailable. In the above example, during 09:12:05 - 09:15:08. |
Hi @nbenezri sorry for the delay! I understand the issue you're experiencing, though this is the way dbt works as is it runs a create or replace statement. I think the issue may be better resolved looking at how your environment is set up. I would suggest working with your engineering team to make sure your dashboards are still available during table refreshes-- there should be some kind of best practices for when prod goes offline temporarily. |
Yeah, I will rename the tables after each refresh.
I thought there might be something simpler.
*Thanks,*
*Nir Ben Ezri*
*DBA Team Lead*
*DistroKid*
*https://distrokid.com* <https://distrokid.com/>
…On Thu, Jan 26, 2023 at 11:24 PM Renee Li ***@***.***> wrote:
Hi @nbenezri <https://github.com/nbenezri> sorry for the delay! I
understand the issue you're experiencing, though this is the way dbt works
as is it runs a create or replace statement. I think the issue may be
better resolved looking at how your environment is set up. I would suggest
working with your engineering team to make sure your dashboards are still
available during table refreshes-- there should be some kind of best
practices for when prod goes offline temporarily.
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATR4QSVYVLWF5KAAO2SJP7LWULTSXANCNFSM6AAAAAAUDZTMCM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yeah, this is something more likely within dbt-core or your internal architecture! Will close this issue as this falls outside the realm of our packages |
Some tables take a long time to refresh, like:
During this time - the table is not available to query in prod.
One way to resolve this is to run in the end:
Is there such a way to do it when each table is ready?
The text was updated successfully, but these errors were encountered: