Skip to content
Snippets Groups Projects
Commit f2123408 authored by Cam Saül's avatar Cam Saül
Browse files

fix QP preprocessing behavior of limit

parent 21498723
Branches
Tags
No related merge requests found
......@@ -177,7 +177,7 @@
[qp]
(fn [{{{ag-type :aggregation-type} :aggregation} :query, :as query}]
(let [query (cond-> query
(= ag-type :rows) (assoc :limit max-result-bare-rows))
(= ag-type :rows) (update-in [:query] #(m/assoc-some % :limit max-result-bare-rows)))
results (qp query)]
(update-in results [:rows] (partial take max-result-rows)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment