Skip to content

Commit bfa7cf9

Browse files
authored
Update parking_defect_met_fail.py
found AND WHERE repair_date >= (??) removed AND
1 parent 5fc68cb commit bfa7cf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/jobs/parking/parking_defect_met_fail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def sparkSqlQuery(glueContext, query, mapping, transformation_ctx) -> DynamicFra
4949
Temp SQL that formats the defcet managment records for Fail/Met
5050
5151
16/11/2022 - Create Query
52+
15/01/2025 - found AND WHERE repair_date >= (??) removed AND
5253
*********************************************************************************/
5354
With Defect as (
5455
SELECT
@@ -92,7 +93,7 @@ def sparkSqlQuery(glueContext, query, mapping, transformation_ctx) -> DynamicFra
9293
date_format(current_date, 'dd') AS import_day,
9394
date_format(current_date, 'yyyyMMdd') AS import_date
9495
FROM Defect
95-
AND WHERE repair_date >=
96+
WHERE repair_date >=
9697
date_add(cast(substr(cast(current_date as string), 1, 8)||'01' as date), -365)
9798
9899

0 commit comments

Comments
 (0)