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:ย 

Delta Identity latest value after insert

RobsonNLPT
Contributor III

Hi all.

I would like to know if databricks has some feature to retrieve the latest identity column value (always generated) after insert or upserts operations? (dataframe apis and sql)

Database engines as Azure SQL  and Oracle have feature that enable latest identities values our sequence values

Any ideas or is there something about on databricks roadmap?

best

 

 

 

2 REPLIES 2

tapash-db
Databricks Employee
Databricks Employee

Hi, You can always query "SELECT MAX(identity_column) FROM your_table_name" and see the latest value of the identity column. However, there are no direct functions available to give the latest identity column value.

Hi.

I was checking for a specific feature to replace that basic approach

Thank you

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now