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!

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!