Skip to content

Commit 45dd193

Browse files
committed
change to 60 days
1 parent e9b734a commit 45dd193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/jobs/planning/tascomi_create_daily_snapshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ def loadIncrementsSinceDate(
8383
) -> DataFrame:
8484
"""
8585
Loads increments from the specified catalog table starting from a given date.
86-
If the provided date is None, it defaults to 30 days ago.
86+
If the provided date is None, it defaults to 60 days ago.
8787
8888
Returns:
8989
DataFrame: A Spark DataFrame containing the loaded increments.
9090
"""
9191
if date is None:
92-
date = (datetime.now() - timedelta(days=30)).strftime("%Y%m%d") # default date
92+
date = (datetime.now() - timedelta(days=60)).strftime("%Y%m%d") # default date
9393
increment_ddf = glueContext.create_dynamic_frame.from_catalog(
9494
name_space=name_space,
9595
table_name=increment_table_name,

0 commit comments

Comments
 (0)