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

fix: Warehouse create and alter properties #598

Merged
merged 4 commits into from
Jul 8, 2021

Conversation

alldoami
Copy link
Contributor

@alldoami alldoami commented Jul 7, 2021

Addressing: #583

Adding optional parameters to list of properties. Already had statement_timeout_in_seconds but added the other two parameters (which are available in both create and alter).

Test Plan

  • acceptance tests

References

@alldoami alldoami requested a review from a team as a code owner July 7, 2021 20:12
@alldoami alldoami requested a review from edulop91 July 7, 2021 20:13
@@ -11,12 +11,13 @@ import (
)

// warehouseCreateProperties are only available via the CREATE statement
var warehouseCreateProperties = []string{"initially_suspended", "wait_for_provisioning", "statement_timeout_in_seconds"}
var warehouseCreateProperties = []string{"initially_suspended", "wait_for_provisioning"}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should probably ForceNew

@@ -103,6 +104,20 @@ var warehouseSchema = map[string]*schema.Schema{
ForceNew: false,
Description: "Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system",
},
"statement_queued_timeout_in_seconds": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add these to Read+Update

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just Read actually

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Integration tests failure for 89edc5af14d2552b63930f3f3d1c9a67e3046350

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Integration tests failure for 442f08ff98097275ede2681dee7fb8f887abd2e3

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Integration tests failure for 634a24f375aa07b0c6e647ad693ce7d2d5170117

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Integration tests success for b1ea85ddc1d4fc95dcb10c71596cc59a370f7fd0

@alldoami alldoami requested a review from edulop91 July 7, 2021 22:22
@alldoami alldoami merged commit 632fd42 into main Jul 8, 2021
@alldoami alldoami deleted the adoami/fix-warehouse-properties branch July 8, 2021 17:48
jtzero pushed a commit to rxrevu/terraform-provider-snowflake that referenced this pull request Aug 19, 2021
anton-chekanov pushed a commit to anton-chekanov/terraform-provider-snowflake that referenced this pull request Jan 25, 2022
daniepett pushed a commit to daniepett/terraform-provider-snowflake that referenced this pull request Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants