cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Lakehosue table structure design

KuldeepChitraka
New Contributor III

We are in process of implementing a lakehouse using Azure Databricks. We already have a datalake in place

  • Azure Storage Datalake – Contains containers which has data in its native format.

How we are planning

  • Build Bronze layer by create bronze tables by reading data from datalake and storing it in bronze tables
    • Tables will enforce schema
    • There will be no partitioning on bronze tables
    • Each table will have _SourceFile   & _ingestionDate column in addition other columns
  • Silver Layer
    • Tables will contains data from bronze tables after applying transformation
    • Tables will have _loadDateTime column

What else column we should have in bronze & silver tables.

What should be our partition scheme. Can we partition tables in silver by LoadDateTime

1 REPLY 1

Rishabh264
Honored Contributor II

hey @Kuldeep Chitrakar​ as you are saying that you do not have a partitioning in bronze tables , so according to that statement that is okay . but in silver as you are going to implement partitioning so , what i will recommend to you is that for better partitioning , we always with the date column not with the datetime column because , if you make partition on the basis of date time column , that is continuosly change , we always perform partition on the SCD (slowly changing dimensions) so if you have any rare changing column in your data , then go with the columns , and if you dont have that columns so add one more in the silver tables named with "date" and make you files on the partition on date rather than loadDateTime columns

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.