Liquid Clustering in Databricks,What It is and How to Use,

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

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

  • @TRRaveendra
    @TRRaveendra  Год назад +1

    You can find the notebook in below github location :
    github.com/raveendratal/PysparkRaveendra/blob/master/Liquid%20Clustering.ipynb

  • @2007mnkumar
    @2007mnkumar Год назад +3

    What a great explanation. Ravi, Day by day the value of your presentations goes higher and higher. It would be greate, If you can share Notebook also.

    • @TRRaveendra
      @TRRaveendra  Год назад +1

      github.com/raveendratal/PysparkRaveendra/blob/master/Liquid%20Clustering.ipynb

  • @ajaykiranchundi9979
    @ajaykiranchundi9979 9 месяцев назад +3

    Thanks Ravi! Great explanation

  • @jeetash1
    @jeetash1 Год назад +3

    First table created using partitionBy on origin and filtering on dayofWeek = 1 and in second table you clustered by "dayofWeek" and filter on dayofWeek = 1 then it will obliviously take more time in case of partition table. I agree it will create files based on total number partitions and it would skip more files to read if table created using partitionBy dayofWeek and add filter on same column.

    • @TRRaveendra
      @TRRaveendra  Год назад +1

      Partition by is not good for small tables
      The old approach was partition and Optimize with Zorder By .
      Instead of partition By
      We can use cluster By
      Then we can apply optimize.
      No need to use partition By and Zorder By for less than 1TB tables.

    • @dipalisabale6302
      @dipalisabale6302 11 месяцев назад

      Cluster by is alternate to partition by and z ordering and recommended table size to implement partition &z orderis 1TB .
      So does this conclude that we should not apply liquid clustering for table less than 1TB size ?

    • @oussemakeskes6275
      @oussemakeskes6275 3 месяца назад +1

      totally agree with @jeetash1. if you want to correctly compare and benchmark partitionBy and clusteredby you should use same column otherwise that comparison doesn't make sense. if you created using partitionBy on dayofWeek and filtering on dayofWeek = 1 and in second table you clustered by "origin " and filter on dayofWeek = 1 partitionby will take less time

  • @saimanideepallu5743
    @saimanideepallu5743 Год назад +1

    I want to have personalized training from you. Could you please let me know about it please ?

  • @udaybalerao4816
    @udaybalerao4816 Год назад

    thank you Sir! One question - will liquid clustering be same as Z order for NON Partitioned table?

  • @rajeshr4145
    @rajeshr4145 11 месяцев назад +1

    Hi Ravi,
    This video was of great use. I have one question. Is it possible to convert an existing table with partitioned having data to liquid cluster? If so can you please suggest the steps?

    • @TRRaveendra
      @TRRaveendra  10 месяцев назад

      as of now you can use only SQL Table DDL for liquid clustering like while creating a table using SQL CREATE TABLE Table_name(col...) cluster by (col1,col2.)
      after that you can alter a table for changing cluster by columns. using alter table ....

    • @ajaykiranchundi9979
      @ajaykiranchundi9979 9 месяцев назад

      Hello Rajesh,
      Did you find an answer ? Did you try directly applying the clustering on the existing table ? was about to try it on one of the tables at my end.

  • @januaymagori4642
    @januaymagori4642 11 месяцев назад

    On partition by why not using coalesce during writing so you can have few files

  • @gokulakrishnansoundararaja2835
    @gokulakrishnansoundararaja2835 Год назад +1

    Sir, Please share the code and also dataset to practice .

    • @TRRaveendra
      @TRRaveendra  Год назад

      github.com/raveendratal/PysparkRaveendra/blob/master/Liquid%20Clustering.ipynb

  • @PrashantSamant-wp5yl
    @PrashantSamant-wp5yl 9 месяцев назад

    On implementing liquid clustering, when I call desc detail table table name, I see clustering columns..but when I insert data to liquid clustering table using dataframe.write ND then execute same desc detail table, clustering columns are lost.i ran optimize but no use.i have datBricks runtime 13.2

  • @arunr2265
    @arunr2265 Год назад +1

    Hi Ravi, Is your cluster photon acceleration enabled.

    • @TRRaveendra
      @TRRaveendra  Год назад

      No, optimize was executed without photon cluster.

  • @maheshrathi2608
    @maheshrathi2608 11 месяцев назад

    @TRRaveendra can u share the dataset link please

    • @TRRaveendra
      @TRRaveendra  11 месяцев назад

      It’s 📌 pinned in comments
      Verify the link