-
Notifications
You must be signed in to change notification settings - Fork 420
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
Updating a DynamicTable defintion fails with SQL compilation error: unexpected <EOF> #2134
Comments
hi @rmargarint-nydig , I experienced same error. |
hello @rmargarint-nydig , did you find a work around for this? We are still experiencing the same issue. |
It looks like the syntax error happens because the query that's executed is this: ALTER DYNAMIC TABLE "<database>"."<schema>"."<table>" SET ( This appears to happen when Terraform detects that there are changes but there are actually no changes. A workaround is to introduce an innocuous change that Terraform will actually apply. For example, if the table's target lag is an hour, Snowflake harmonizes this to ALTER DYNAMIC TABLE "<database>"."<schema>"."<table>" SET TARGET_LAG = '60 minutes' Despite being an unnecessary alter statement, this works around the We actually discovered this because we tried to get rid of the spurious change and realized we were depending on a bug. |
Hey @rmargarint-nydig. Thanks for creating the issue. Yes, it looks like a bug in the dynamic table resource. It is relatively easy to fix. I will work on it next week so that it will hopefully be ready for next Wednesday's release. |
Attempting to create dynamic tables through TF, however running into a show stopper bug.
The very first apply of the dynamic table succeeds without any problems.
But:
The text was updated successfully, but these errors were encountered: