cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Warehouse in Databricks Date values as date or int: what is recommended?

DataFarmer
New Contributor II

In  relational data warehouse systems it was best practise to represent date values as YYYYMMDD integer type values in tables. Date comparison could be done easily without using date-functions and with low performance impact.

Is this still the recommended way in a delta lakehouse architecture?

2 REPLIES 2

Ajay-Pandey
Esteemed Contributor III

Hi @DataFarmer 

I Databricks I will advise you to use date type instead of int, this will make your life much simpler while working on the date type data.

-werners-
Esteemed Contributor III

Definitely +1.
You don't want to lose leading zeroes f.e.

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.