Open a-schot opened 1 week ago
Hi @a-schot 👋
I think this is similar to https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3163, but that issue missed USE_LOGICAL_TYPE
. Our answer is similar here: we are currently focused on pushing all necessary things toward the recently announced v1. We'll fix this during rework of file_format
resource after v1. For now, please try to utilize the unsafe_execute as a way to alter or completely manage the file format.
Terraform CLI Version
1.9.8
Terraform Provider Version
0.96.0
Company Name
PGGM
Terraform Configuration
Category
category:resource
Object type(s)
resource:file_format
Expected Behavior
After running
terraform apply
runningDESCRIBE FILE FORMAT
in Snowflake shows:REPLACE_INVALID_CHARACTERS
set toTRUE
An option in Terraform called
use_logical_type
with the same default as the Snowflake which sets (and checks when planning) theUSE_LOGICAL_TYPE
property for the relevant file formats.Additionally, running
And rerunning
terraform apply
does not detect changes in the configuration, leading me to suspect it's not being checked in the provider.Actual Behavior
After running
terraform apply
runningDESCRIBE FILE FORMAT
in Snowflake shows:REPLACE_INVALID_CHARACTERS
set toFALSE
USE_LOGICAL_TYPE
set toFALSE
The defaults for both these properties
Steps to Reproduce
DESCRIBE FILE FORMAT db_name.schema_name.ff_parquet_default
How much impact is this issue causing?
Low
Logs
No response
Additional Information
No response
Would you like to implement a fix?