Skip to content

Commit

Permalink
remove type-where
Browse files Browse the repository at this point in the history
  • Loading branch information
dwwoelfel committed Jan 16, 2025
1 parent abb7946 commit a1cc657
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/instant/db/datalog.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a1cc657

Please sign in to comment.