I came up with something like
-- :name mytest :? :* /* :require [clojure.string :as string] */ SELECT --~ (string/join ", " (map-indexed (fn [index _] (str "a.:i:cols." index)) (:cols params))) FROM (:snip:table-name) AS a