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

Поділитися
Вставка
  • Опубліковано 26 жов 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

  • @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

  • @ajaykiranchundi9979
    @ajaykiranchundi9979 9 місяців тому +3

    Thanks Ravi! Great explanation

  • @saimanideepallu5743
    @saimanideepallu5743 Рік тому +1

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

  • @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  11 місяців тому

      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.

  • @udaybalerao4816
    @udaybalerao4816 Рік тому

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

  • @arunr2265
    @arunr2265 Рік тому +1

    Hi Ravi, Is your cluster photon acceleration enabled.

    • @TRRaveendra
      @TRRaveendra  Рік тому

      No, optimize was executed without photon cluster.

  • @gokulakrishnansoundararaja2835

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

    • @TRRaveendra
      @TRRaveendra  Рік тому

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

  • @januaymagori4642
    @januaymagori4642 11 місяців тому

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

  • @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

  • @maheshrathi2608
    @maheshrathi2608 Рік тому

    @TRRaveendra can u share the dataset link please

    • @TRRaveendra
      @TRRaveendra  Рік тому

      It’s 📌 pinned in comments
      Verify the link