Skip to content

Commit 305db39

Browse files
committed
partition by day
1 parent 681e0e4 commit 305db39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bronze/incremental_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def delta_load(spark: SparkSession, jdbc_url:str, MYSQL_USER:str, MYSQL_SECRET:s
153153
incremental_df = incremental_df.withColumn("ingestion_date", F.current_timestamp()).withColumn("source_name", F.lit(table))
154154

155155
# Append new partitions directly
156-
incremental_df.write.format("delta").mode("append").partitionBy("year", "month").save(path)
156+
incremental_df.write.format("delta").mode("append").partitionBy("year", "month","day").save(path)
157157

158158
return (True,last_update)
159159

0 commit comments

Comments
 (0)