terraform-provider-snowflake icon indicating copy to clipboard operation
terraform-provider-snowflake copied to clipboard

[Feature]: "ORDER" | "NOORDER" setting for the identity column

Open kanomaxb opened this issue 1 year ago • 5 comments

Company Name

No response

Use Cases or Problem Statement

In one of recent releases Snowflake decided that identity columns (and sequences) will no longer keep order by default. There is a new setting to enforce this order, it's called "ORDER" https://docs.snowflake.com/en/sql-reference/sql/create-table

Category

category:resource

Object type(s)

No response

Proposal

In addition to start_num and step_num, the identity definition should also have order property.

How much impact is this issue causing?

Medium

Additional Information

No response

Would you like to implement a fix?

  • [ ] Yeah, I'll take it 😎

kanomaxb avatar Nov 25 '24 10:11 kanomaxb

Hi @kanomaxb 👋

We'll add this feature while reworking the table resource. We'll go through the documentation and make sure all fields are possible to set in the configuration.

sfc-gh-jmichalak avatar Nov 25 '24 12:11 sfc-gh-jmichalak

Hello, is there any updates on when this is expected to be implemented?

rorydonaldson avatar Apr 24 '25 14:04 rorydonaldson

Hey, we will share the roadmap for the next months in early May (check https://github.com/snowflakedb/terraform-provider-snowflake/blob/main/ROADMAP.md#23042025-v200-release---ga).

sfc-gh-asawicki avatar Apr 24 '25 14:04 sfc-gh-asawicki

@sfc-gh-jmichalak @sfc-gh-asawicki I am keenly interested in snowflake_table being promoted from a preview feature to a stable feature. You mention that you are "reworking the table resource". Is this something being done internally within Snowflake, or is this something I could contribute to?

jmkacz avatar May 14 '25 21:05 jmkacz

Hi @jmkacz, this resource is more challenging than others because of things like column order, nested attributes, etc. It requires thoughtful discussions and designs. We prefer reworking tables ourselves, but we don't have a timeline for now.

sfc-gh-jmichalak avatar May 15 '25 11:05 sfc-gh-jmichalak