How and When to Use Databricks Identity Column

Поделиться
HTML-код
  • Опубликовано: 12 окт 2023
  • 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.com/bePatron?u=63...
    Video Slides
    github.com/bcafferky/shared/b...
    Delta Logs Video 1
    • Understanding Delta Fi...
    Delta Logs Video 2
    • Understanding Delta Fi...
    Delta Logs Video 3
    • Understanding Delta Fi...
  • НаукаНаука

Комментарии • 8

  • @felipeporto4396
    @felipeporto4396 2 месяца назад

    This is pure gold

  • @artus198
    @artus198 8 месяцев назад

    yep, I come from SQL , we used identity all the time on PKs ... ! Thanks for the video.

  • @mateen161
    @mateen161 8 месяцев назад

    Useful video. Thank you.

  • @user-fh8jo3us4t
    @user-fh8jo3us4t 8 месяцев назад +1

    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...

  • @lunatyck05
    @lunatyck05 8 месяцев назад +1

    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

    • @BryanCafferky
      @BryanCafferky  8 месяцев назад

      Hmmm.. I thought I did mention that but guess I was not clear. Thanks

  • @MinPro-ws7ib
    @MinPro-ws7ib 8 месяцев назад

    Is the table managed or external?

    • @BryanCafferky
      @BryanCafferky  8 месяцев назад

      It's actually not relevant for this.