Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid bug with checkpointing by switching to parquet #2525

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion splink/internals/connected_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def solve_connected_components(
SELECT representative FROM __splink__representatives_stable_{iteration}
)
"""
pipeline.enqueue_sql(sql, "__splink__representatives_unstable")
pipeline.enqueue_sql(sql, f"__splink__representatives_unstable_{iteration}")
prev_representatives_thinned = db_api.sql_pipeline_to_splink_dataframe(pipeline)

# 1a. Thin neighbours table - we can drop all rows that refer to
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def DatabaseAPI(self):
def db_api_args(self):
return {
"spark_session": self.spark,
"num_partitions_on_repartition": 1,
"break_lineage_method": "checkpoint",
"num_partitions_on_repartition": 2,
"break_lineage_method": "parquet",
}

def convert_frame(self, df):
Expand Down
Loading