             [puppetlabs.puppetdb.query.fact-contents :as fact-contents]
             [puppetlabs.puppetdb.query.resources :as resources]
             [puppetlabs.puppetdb.query.catalog-inputs :as inputs]
+            [puppetlabs.puppetdb.query-eng.default-reports :as dr]
             [puppetlabs.puppetdb.scf.storage-utils :as sutils]
             [puppetlabs.puppetdb.schema :as pls]
             [puppetlabs.puppetdb.utils :as utils]
             [puppetlabs.puppetdb.query-eng.engine :as eng]
-            [schema.core :as s]))
+            [schema.core :as s])
+  (:import (clojure.lang ExceptionInfo)
+           (org.postgresql.util PGobject)
+           (org.joda.time Period)))
 
 (def entity-fn-idx
   (atom


                      :else
                      (get-in @entity-fn-idx [entity :rec]))
          columns (orderable-columns query-rec)]
      (paging/validate-order-by! columns query-options)
      (eng/compile-user-query->sql query-rec query query-options))))

(defn get-munge-fn
  [entity version paging-options url-prefix]

(ns puppetlabs.puppetdb.query-eng
  (:require [clojure.core.match :as cm]
            [clojure.java.jdbc :as sql]
            [clojure.tools.logging :as log]
