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] credit quota as float on read, int on write #274

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

andybeeswax
Copy link
Contributor

@andybeeswax andybeeswax commented Oct 13, 2020

Snowflake only accepts credit_quota as an int. However, the show resource monitors command returns it as a float. This PR converts the float read from Snowflake into an int.

Test Plan

  • acceptance tests

References

Fixes #145 and #109

@andybeeswax andybeeswax requested a review from a team as a code owner October 13, 2020 00:50
@andybeeswax andybeeswax requested review from alldoami and removed request for a team October 13, 2020 00:50
@ryanking ryanking changed the title Change credit quota to float on read, int on write [fix] credit quota as float on read, int on write Oct 13, 2020
@ryanking ryanking merged commit 26a0a0b into Snowflake-Labs:main Oct 13, 2020
@andybeeswax andybeeswax deleted the credit_quota_int branch October 13, 2020 17:37
gjv9491 pushed a commit to gjv9491/terraform-provider-snowflake that referenced this pull request Mar 19, 2021
Snowflake only accepts credit_quota as an int.  However, the `show resource monitors` command returns it as a float.  This PR converts the float read from Snowflake into an int.  


## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested -->
* [x] acceptance tests
<!-- add more below if you think they are relevant -->

## References
Fixes Snowflake-Labs#145 and Snowflake-Labs#109
anton-chekanov pushed a commit to anton-chekanov/terraform-provider-snowflake that referenced this pull request Jan 25, 2022
Snowflake only accepts credit_quota as an int.  However, the `show resource monitors` command returns it as a float.  This PR converts the float read from Snowflake into an int.  


## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested -->
* [x] acceptance tests
<!-- add more below if you think they are relevant -->

## References
Fixes Snowflake-Labs#145 and Snowflake-Labs#109
daniepett pushed a commit to daniepett/terraform-provider-snowflake that referenced this pull request Feb 9, 2022
Snowflake only accepts credit_quota as an int.  However, the `show resource monitors` command returns it as a float.  This PR converts the float read from Snowflake into an int.  


## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested -->
* [x] acceptance tests
<!-- add more below if you think they are relevant -->

## References
Fixes Snowflake-Labs#145 and Snowflake-Labs#109
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.

Resource Monitor CREDIT_QUOTA type
2 participants