Skip to content

Commit b836136

Browse files
committed
remove ReconIntermediatePersist usage from prod code
1 parent 55c56d4 commit b836136

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/databricks/labs/lakebridge/reconcile/compare.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ def reconcile_data(
7878
)
7979
)
8080

81-
# Write unmatched df to volume
82-
df = ReconIntermediatePersist(spark, path).write_and_read_unmatched_df_with_volumes(df)
83-
logger.debug(f"Unmatched data was written to {path} successfully")
84-
8581
mismatch = _get_mismatch_data(df, source_alias, target_alias) if report_type in {"all", "data"} else None
8682

8783
missing_in_src = (
@@ -450,9 +446,4 @@ def join_aggregate_data(
450446
joined_cols = source.columns + target.columns
451447
normalized_joined_cols = [DialectUtils.ansi_normalize_identifier(col) for col in joined_cols]
452448
joined_df = df.select(*normalized_joined_cols)
453-
454-
# Write the joined df to volume path
455-
joined_volume_df = ReconIntermediatePersist(spark, path).write_and_read_unmatched_df_with_volumes(joined_df).cache()
456-
logger.warning(f"Unmatched data is written to {path} successfully")
457-
458-
return joined_volume_df
449+
return joined_df

src/databricks/labs/lakebridge/reconcile/trigger_recon_aggregate_service.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ def trigger_recon_aggregates(
6767
recon_process_duration=recon_process_duration,
6868
)
6969

70-
(
71-
ReconIntermediatePersist(
72-
spark=spark,
73-
path=utils.generate_volume_path(normalized_table_conf, reconcile_config.metadata_config),
74-
).clean_unmatched_df_from_volume()
75-
)
76-
7770
return TriggerReconService.verify_successful_reconciliation(
7871
generate_final_reconcile_aggregate_output(
7972
recon_id=recon_capture.recon_id,

src/databricks/labs/lakebridge/reconcile/trigger_recon_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,6 @@ def persist_delta_table(
232232
recon_process_duration=recon_process_duration,
233233
record_count=reconciler.get_record_count(table_conf, reconciler.report_type),
234234
)
235-
if reconciler.report_type != "schema":
236-
ReconIntermediatePersist(
237-
spark=spark, path=utils.generate_volume_path(table_conf, reconcile_config.metadata_config)
238-
).clean_unmatched_df_from_volume()
239235

240236
@staticmethod
241237
def verify_successful_reconciliation(

0 commit comments

Comments
 (0)