:else(do(log/error(u/format-color'red"Annotation failed: don't know what to do with Field '%s'.\nExpected these Fields:\n%s"
col-kw
(u/pprint-to-strfield-kw->field)))
{:base_type:UnknownField
:special_typenil})))))
;; Add FK info the the resulting Fields
add-fields-extra-info
;; Remove extra data from the resulting Fields
(map(u/rpartialdissoc:children:parent_id)))))
(defn-post-annotate
"Take a sequence of RESULTS of executing QUERY and return the \"annotated\" results we pass to postprocessing -- the map with `:cols`, `:columns`, and `:rows`.
RESULTS should be a sequence of *maps*, keyed by result column -> value."
:else(do(log/error(u/format-color'red"Annotation failed: don't know what to do with Field '%s'.\nExpected these Fields:\n%s"
col-kw
(u/pprint-to-strfield-kw->field)))
{:base_type:UnknownField
:special_typenil})))))
;; Add FK info the the resulting Fields
add-fields-extra-info
;; Remove extra data from the resulting Fields
(map(u/rpartialdissoc:children:parent_id)))))
(defnpost-annotate
"Take a sequence of RESULTS of executing QUERY and return the \"annotated\" results we pass to postprocessing -- the map with `:cols`, `:columns`, and `:rows`.
RESULTS should be a sequence of *maps*, keyed by result column -> value."