Creating historization table to capture Incremental load using pyspark

Viewed 10

I would like to create a historical table for a snapshot data each time a new transaction is performed on an id

As an output i'm looking for a table like this

purchase_id Date_to Date_from
id1 29.03.2018 01.01.1000
id1 31.12.9999 30.03.2018
0 Answers
Related