                               distinct*
                               (as "a"))
                           (-> "longName"
-                              ttl
+                              ttl-column
                               (as "ttla")))
                  (limit (? "limit")))))
 

                 (where {:b (Bytes/fromHexString "0xCAFEBABE")}))))

  (is (thrown? java.lang.IllegalStateException
       (select :foo
               (count-all)
               (order-by (asc "a") (desc "b"))
               (order-by (asc "a") (desc "b")))))

  (is (thrown? java.lang.IllegalArgumentException
               (select :foo

                              (distinct*)
                              (as "a"))
                          (-> "longName"
                              (ttl-column)
                              (as "ttla")))
                 (where [[:in :k []]])
                 (limit (? "limit")))))
