                                   :field-name   :name
                                   :special-type :special_type
                                   :table-id     :table_id})
-               (dissoc :parent :parent-id :position)))))
+               (dissoc :parent :parent-id :position :ag-field?)))))
 
 (defn- add-fields-extra-info
   "Add `:extra_info` about `ForeignKeys` to `Fields` whose `special_type` is `:fk`."

                                       keyword))
               (dissoc :parent :parent-id :table-name))))

(defn- query-add-info [query results]
  {:pre [(integer? (get-in query [:source-table :id]))]}
  (let [fields (transient [])]
    (clojure.walk/prewalk (fn [f]

       :columns (mapv name columns)
       :rows    (for [row results]
                  (mapv row columns))})))

;; #_(require 'metabase.driver)
;; (require 'metabase.test.data)
;; (require 'metabase.test.data.datasets)
;; (defn x []
;;   (metabase.test.data.datasets/with-dataset
;;     :postgres
;;     (metabase.driver/process-query
;;      {:type :query,
;;       :database (metabase.test.data/db-id),
;;       :query
;;       {:source_table (metabase.test.data/id :venues),
;;        :filter
;;        ["INSIDE"
;;         (metabase.test.data/id :venues :latitude)
;;         (metabase.test.data/id :venues :longitude)
;;         10.0649
;;         -165.379
;;         10.0641
;;         -165.371],
;;        :aggregation ["rows"],
;;        :breakout [nil],
;;        :limit nil}})))
