How to reset the IDENTITY column count?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 10:46 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2022 01:16 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 10:29 AM
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!

