diff --git a/project.clj b/project.clj index 7a0851a56387309a067b12f67d94e8d164427431..cfdf6ebb3f5146e90a3dfbf21943d4cc92a5e583 100644 --- a/project.clj +++ b/project.clj @@ -72,7 +72,7 @@ [lein-expectations "0.0.8"] ; run unit tests with 'lein expectations' [lein-instant-cheatsheet "2.1.1"] ; use awesome instant cheatsheet created by yours truly w/ 'lein instant-cheatsheet' [lein-marginalia "0.8.0"] ; generate documentation with 'lein marg' - [refactor-nrepl "1.0.5"]] ; support for advanced refactoring in Emacs/LightTable + [refactor-nrepl "1.1.0-SNAPSHOT"]] ; support for advanced refactoring in Emacs/LightTable :global-vars {*warn-on-reflection* true} ; Emit warnings on all reflection calls :jvm-opts ["-Dlogfile.path=target/log" "-Xms1024m" ; give JVM a decent heap size to start with diff --git a/src/metabase/driver/query_processor.clj b/src/metabase/driver/query_processor.clj index 6344fb5e9c664b804513a40881a9235848712299..ea3cf31e7efe2b3d30404ec48cb3164756650dfa 100644 --- a/src/metabase/driver/query_processor.clj +++ b/src/metabase/driver/query_processor.clj @@ -197,7 +197,7 @@ (sequential? (:cols results)) (sequential? (:rows results))]} (let [num-results (count (:rows results))] - (cond-> {:row_count (count (:rows results)) + (cond-> {:row_count num-results :status :completed :data results} (= num-results max-result-rows) (assoc :num_results_over_limit true)))) ; so the front-end can let the user know why they're being arbitarily limited