Forum Discussion

UsefGamal's avatar
UsefGamal
Regular Visitor
2 years ago
Solved

Adding auto incremented identity column to deltalake table

Hi everyone,   I have implemented a complete medallion architecture based on lakehouses delta tables (bronze - silver - gold) , i am trying to add an auto generated identity column which will act a...
  • UsefGamal's avatar
    UsefGamal
    2 years ago

    Yes i am using Notebooks to Upserts / merge

     

    And i already solved it by similar approach,  just forgot to tell here.

     

    My current solution was that i added the monotonically_increasing_id column to the delta tables at the bronze layer and added the current date of the data load for uniqiness of values then they update the silver delta tables like any other table with consistent schema between the two delta tables