-
Notifications
You must be signed in to change notification settings - Fork 427
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 support for selecting language in snowflake_procedure #948
Comments
Implements Snowflake-Labs#948 The previous behaviour was always setting `JAVASCRIPT` as language. The implementation in this PR breaks the "backwards compatibility" with that rule to honor the Snowflake default: `SQL`.
Implements Snowflake-Labs#948 The previous behaviour was always setting `JAVASCRIPT` as language. The implementation in this PR breaks the "backwards compatibility" with that rule to honor the Snowflake default: `SQL`.
* Add support for selecting language in snowflake_procedure Implements #948 The previous behaviour was always setting `JAVASCRIPT` as language. The implementation in this PR breaks the "backwards compatibility" with that rule to honor the Snowflake default: `SQL`. * Update documentation for `procedure_grant` and `function_grant` as requested * Generate docs with `make check-docs` * Update docs Co-authored-by: Allison Doami <[email protected]> Co-authored-by: Scott Winkler <[email protected]>
I think |
Hi, it's possible to deploy a store procedure selecting python as the language? I'm trying and gives me the following error: _│ Error: expected language to be one of [javascript java scala SQL], got PYTHON. I'm using version 1.3.3 of terraform with the snowflake provider version 0.54.0 |
Seems this is fixed in pr #1516 . |
Hi, thanks for pointing out to me the issue. But I updated to the latest version of the provider ( I'm using version 1.3.3 of terraform with the snowflake provider version 0.56.3) and stills throw the same error. I review the main branch and I saw that the language "python" had not been included as an accepted language (procedure.go, line 17): |
Seems this has been fixed in 0.60.0 . |
I am going to go ahead and close this since it is now possible to create procedures using other languages besides javascript. |
Describe the solution you'd like
As as a user of terraform resource called
snowflake_procedure
I'd like to have possibility to select language, in which the procedure is written.According to Snowflake documentation for stored procedures Snowflake supports languages as in the following:
Unfortunately Snowflake terraform resource provider in
snowflake_procedure
does not support selecting language, and Javascript is used as a default language.Describe alternatives you've considered
Not available.
Additional context
Links to documentation pages:
https://docs.snowflake.com/en/sql-reference/stored-procedures-overview.html
https://registry.terraform.io/providers/chanzuckerberg/snowflake/latest/docs/resources/procedure
The text was updated successfully, but these errors were encountered: