From 5ccb062a7d5d5013d8fb2790d8192699f910f49f Mon Sep 17 00:00:00 2001 From: aymonwuolanne Date: Tue, 7 Jan 2025 09:03:09 +1100 Subject: [PATCH] fix for postgres backend --- splink/internals/one_to_one_clustering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splink/internals/one_to_one_clustering.py b/splink/internals/one_to_one_clustering.py index f5361f6dc..c950e1f8a 100755 --- a/splink/internals/one_to_one_clustering.py +++ b/splink/internals/one_to_one_clustering.py @@ -82,7 +82,7 @@ def one_to_one_clustering( # might need to quote the value here? contains_expr = ", ".join( [ - f"max(cast(source_dataset = '{sd}' as int)) as contains_{sd}" + f"max(cast(source_dataset = '{sd}' as int)) > 0 as contains_{sd}" for sd in source_datasets ] )