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 II

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

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group