[Bug]: snowflake_external_function resource Error: return_type VARCHAR not recognized #3392
Labels
bug
Used to mark issues with provider's incorrect behavior
category:preview
Topics connected with preview features
resource:external_function
Issue connected to the snowflake_external_function resource
Terraform CLI Version
1.9.4
Terraform Provider Version
1.0.2
Company Name
No response
Terraform Configuration
Category
category:resource
Object type(s)
resource:external_function
Expected Behavior
I first import an existing external function in the data warehouse into terraform. The existing external function returns varchar data. This is confirmed working in the UI.
The external function object can then be managed by terraform.
The plan is generated successfully and can be applied successfully.
Actual Behavior
The plan is initially generated successfully:
On apply, I get the following error and the object is not created:
When reverting the change, the plan to remove the resource generates the same error.
Steps to Reproduce
How much impact is this issue causing?
High
Logs
No response
Additional Information
The same error is returned when setting
return_type = "VARCHAR"
vsreturn_type = "varchar"
.Since the object was imported successfully, the error is only returned when loading the object from the tfstate file.
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: