Forum Discussion
Reprocess data present in ADLS
- 2 years ago
Anonymous - How is your landing zone structured? Are you using a hierarchy for storing when the file(s) were ingested in the landing zone (Ex: Year -> Month -> Day..).
When you read from whichever file path is in the Landing Zone or all dynamic, you can access some Metadata as part of the process; including the Modified Date of the file. You can then use a filter to get rid of any data that is before the seed date you passed in.
df = spark.read.format('json').load(<path>).select("*","_metadata.file_modification_time) Or
df = spark.read.format('json').load(<path).select("*").filter("_metadata.file_modification_time" > "<date>")
Anonymous - How is your landing zone structured? Are you using a hierarchy for storing when the file(s) were ingested in the landing zone (Ex: Year -> Month -> Day..).
When you read from whichever file path is in the Landing Zone or all dynamic, you can access some Metadata as part of the process; including the Modified Date of the file. You can then use a filter to get rid of any data that is before the seed date you passed in.
df = spark.read.format('json').load(<path>).select("*","_metadata.file_modification_time) Or
df = spark.read.format('json').load(<path).select("*").filter("_metadata.file_modification_time" > "<date>")