From a1cc657a8a4b81a88f40ed044d4f1564b3863b5b Mon Sep 17 00:00:00 2001 From: Daniel Woelfel Date: Wed, 15 Jan 2025 16:13:14 -0800 Subject: [PATCH] remove type-where --- server/src/instant/db/datalog.clj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/src/instant/db/datalog.clj b/server/src/instant/db/datalog.clj index b524458c..81db8971 100644 --- a/server/src/instant/db/datalog.clj +++ b/server/src/instant/db/datalog.clj @@ -1158,15 +1158,11 @@ (reverse-direction direction) direction) - type-where (when (not= order-col-type :created-at-timestamp) - [[:= :checked_data_type [:cast [:inline (name order-col-type)] :checked_data_type]]]) - query (-> query ;; Move `where` to join conds so that we get the null fields (dissoc :where :from) (assoc :from [prev-table]) - (assoc :left-join [:triples (concat (:where query) - type-where)]) + (assoc :left-join [:triples (:where query)]) ;; Make sure we're getting each entity once (dissoc :select)