From ff82a057e306626f2246d24e5732b6329a52658c Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Mon, 5 Dec 2022 18:29:22 -0500 Subject: [PATCH] fix missing match --- lib/join.ex | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/join.ex b/lib/join.ex index 81dd176..5de7f01 100644 --- a/lib/join.ex +++ b/lib/join.ex @@ -313,10 +313,13 @@ defmodule AshPostgres.Join do should_distinct? = case join_type do :left -> - :left + true {:aggregate, _, _, _} -> - :left + true + + _ -> + false end if IO.inspect(relationship.cardinality) == :many and IO.inspect(should_distinct?) &&