Skip to content

Provider trying to enable unavailable feature: Invalid Property QUERY_ACCELERATION_MAX_SCALE_FACTOR #1628

Description

@DVAlexHiggs

Provider Version

0.58.2 (I had this issue in 0.58.0 as well)

Terraform Version

1.4.0

Describe the bug

When creating a warehouse using Standard edition Snowflake, it tries to enable QUERY_ACCELERATION_MAX_SCALE_FACTOR which is unavailable in the Standard edition. It does this even with and without enable_query_acceleration = false in the resource definition.

Expected behavior

The warehouse should be created without trying to enable Query acceleration

Code samples and commands

With the following resource definitions:

resource "snowflake_warehouse" "sandbox_warehouse_x_small" {
  name           = "SANDBOX_XS"
  comment        = "Warehouse for use in the developer SANDBOX Database"
  warehouse_size = "x-small"
  enable_query_acceleration = false
}

OR

resource "snowflake_warehouse" "sandbox_warehouse_x_small" {
  name           = "SANDBOX_XS"
  comment        = "Warehouse for use in the developer SANDBOX Database"
  warehouse_size = "x-small"
}

terraform apply produces the following error:

│ Error: error creating warehouse err = 001423 (22023): SQL compilation error:
│ invalid property 'QUERY_ACCELERATION_MAX_SCALE_FACTOR'; feature 'Query Acceleration Service' not enabled
│ 
│   with snowflake_warehouse.sandbox_warehouse_x_small,
│   on warehouses.tf line 1, in resource "snowflake_warehouse" "sandbox_warehouse_x_small":
│    1: resource "snowflake_warehouse" "sandbox_warehouse_x_small" {
│ 

Additional context

  • There is an existing (merged) PR for this that seems to have identified the same issue and 'fixed' it. Someone on that thread does point out it is still a bug though

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReproducible issue with the provider or Snowflake behavior.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions