File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def prepare_increments(increment_df):
8989
9090 # Check for residual duplicates - print and further de-duplicate
9191 duplicate_ids = increment_df .groupBy ("id" ).count ().filter ("count > 1" )
92- if duplicate_ids .count () > 0 :
92+ if duplicate_ids .limit ( 1 ). count () > 0 :
9393 duplicate_ids .join (increment_df , "id" ).show (truncate = False )
9494 increment_df = deduplicate_by_id_and_last_updated (increment_df )
9595 else :
@@ -368,7 +368,7 @@ def purge_today_partition(
368368 verificationSuite .saveOrAppendResult (resultKey ).run ()
369369
370370 # if data quality tests succeed, write to S3
371-
371+ snapshot_df = snapshot_df . coalesce ( 300 )
372372 resultDataFrame = DynamicFrame .fromDF (
373373 snapshot_df , glueContext , "resultDataFrame"
374374 )
You can’t perform that action at this time.
0 commit comments