Hi,

To your question, the dataset is large and will be growing as well. In my use case the Silver layer contains a USER table(streaming Delta live table) like below:

USER table:

batchidIDNamestartdateEnddate
akjfdhjsa123ABC11/01/202411/02/2024
adjagfua123ABC11/02/202411/05/2024
sdgfrbas123ABC11/05/2024NULL
hgasdfcg567XYZ11/01/202411/05/2024
ahgfdhgb567XYZ11/05/2024NULL
     

In the Gold Layer we need a table like:

USER_IDUSER_NAMEUSER_START_DATEUSER_END_DATE
123ABC11/05/2024NULL
567XYZ11/05/2024NULL

The transformations that has to be done in Gold Layer are:

1. Renaming of columns to the dataset 

2. To add the PK/FK constraints to the dataset

3. To remove few columns like batchid in the dataset

4. To make the dataset SCD TYPE 1 in the Gold layer i.e to bring only the latest updated records of the user 

5. Sometimes to make join with 1 or 2 tables and bring new columns

The question here is:

Should the dataset be created as a streaming Table or a materialized view?

 

DHARINI PARGUNAN