cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.