How and When to Use Databricks Identity Column
Вставка
- Опубліковано 26 сер 2024
- Databricks added support for Identity Columns similar to the same feature found in relational databases. How do you use it? Should you use it? How does it differ from Identity columns on relational databases? Before you use the Identity Column feature, you need to watch this video.
Support me on Patreon
www.patreon.co...
Video Slides
github.com/bca...
Delta Logs Video 1
• Understanding Delta Fi...
Delta Logs Video 2
• Understanding Delta Fi...
Delta Logs Video 3
• Understanding Delta Fi...
Great and timeless info as always! qq - how has your experience been using the IDENTITY Column since making this video?
I have not dared to try it again. lol I don't think it is the best idea for a scaled out service to be honest. Ok if updates are limited but I would still try to find an alternative.
yep, I come from SQL , we used identity all the time on PKs ... ! Thanks for the video.
Partitioning by identity coliumn would be indeed a bad idea but if we had the partition by range feature, it could be interesting so that you partition by million or rows as an example...
This is pure gold
Should also mention if you try to insert a id value you will get an error when using GENERATED ALWAYS AS IDENTITY but you are able to use GENERATED BY DEFAULT and override identity or insert nulls into the column
Hmmm.. I thought I did mention that but guess I was not clear. Thanks
Useful video. Thank you.
Is the table managed or external?
It's actually not relevant for this.