cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset the IDENTITY column count?

auser85
New Contributor III

After accumulating many updates to a delta table,

like,

keyExample bigint GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1),

my identity column values are in the hundreds of millions. Is there any way that I can reset this value through vacuuming or some other option?

2 REPLIES 2

-werners-
Esteemed Contributor III

The docs mention the following operations are not allowed:

  • PARTITIONED BY an identity column
  • UPDATE an identity column

Delete column is not there so you could drop it and recreate? I'd try that one out.

Anonymous
Not applicable

Hey there @Andrew Fogarty​ 

Does @Werner Stinckens​'s response answer your question? If yes, would you be happy to mark it as best so that other members can find the solution more quickly? Else please let us know if you need more help. 

Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group