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?

-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!