    :is_active               true
    :definition              {:clause ["a" "b"]}}
   (tu/with-temp* [Database [{database-id :id}]
-                  Table    [{:keys [id]} {:db_id database-id}]]
+                  Table    [{:keys [id]}      {:db_id database-id}]]
     (create-metric-then-select! id "I only want *these* things" nil (user->id :rasta) {:clause ["a" "b"]})))
 
 

   :definition              {:database 45
                             :query    {:filter ["yay"]}}}
  (tu/with-temp* [Database [{database-id :id}]
                  Table    [{table-id :id}  {:db_id database-id}]
                  Metric   [{metric-id :id} {:table_id    table-id
                                             :definition  {:database 45
                                                           :query    {:filter ["yay"]}}}]]
    (let [{:keys [creator] :as metric} (retrieve-metric metric-id)]
      (update (dissoc metric :id :table_id :created_at :updated_at)
              :creator (u/rpartial dissoc :date_joined :last_login)))))

  [true
   false]
  (tu/with-temp* [Database [{database-id :id}]
                  Table    [{table-id :id}    {:db_id database-id}]
                  Metric   [{metric-id :id}   {:table_id   table-id
                                               :definition {:database 45
                                                            :query    {:filter ["yay"]}}}]]
    [(metric/exists? metric-id)
     (metric/exists? Integer/MAX_VALUE)])) ; a Metric that definitely doesn't exist


;; retrieve-metric
