This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-26
Channels
- # babashka (7)
- # beginners (85)
- # calva (39)
- # cider (3)
- # clara (1)
- # clj-kondo (10)
- # clojure (194)
- # clojure-europe (36)
- # clojure-madison (2)
- # clojure-nl (13)
- # clojure-spec (11)
- # clojure-uk (2)
- # clojurescript (17)
- # community-development (5)
- # component (9)
- # conjure (4)
- # core-async (3)
- # cursive (32)
- # data-science (26)
- # datomic (31)
- # graalvm (22)
- # holy-lambda (31)
- # honeysql (7)
- # introduce-yourself (1)
- # jobs (9)
- # jobs-rus (1)
- # lsp (3)
- # malli (9)
- # off-topic (54)
- # pathom (27)
- # pedestal (6)
- # portal (1)
- # re-frame (4)
- # releases (1)
- # remote-jobs (1)
- # sci (3)
- # shadow-cljs (4)
- # spacemacs (13)
- # vim (14)
- # xtdb (3)
hi. is there a reason why a query like this
[{:select [[:stp.site_trial_id :site_trial_id] [#sql/call [:max :stp.created_at] :latest_activity_at]],
:from [[:SiteTrialPatientView :stp]],
:join [[:SiteTrialRead :st] [:= :st.id :stp.site_trial_id]],
:where [:and [:in :stp.site_trial_id #sql/param :site-trial-ids] [:<> :st.sponsor_trial_id nil] [:in :stp.stage [#object[org.postgresql.util.PGobject 0x3634ec9f "potential-candidate"] #object[org.postgresql.util.PGobject 0x73918461 "completed"] #object[org.postgresql.util.PGobject 0xb808f9e "enrolled"] #object[org.postgresql.util.PGobject 0x3ca4bc49 "pre-screen-failure"] #object[org.postgresql.util.PGobject 0x2de5ef56 "screen-failure"] #object[org.postgresql.util.PGobject 0x5228c407 "first-visit-scheduled"] #object[org.postgresql.util.PGobject 0x5d5b5da3 "in-screening"] #object[org.postgresql.util.PGobject 0x4484e4b5 "discontinued"] #object[org.postgresql.util.PGobject 0x46993c2c "pre-screening"]]]]}]
is returning the following error java.lang.AssertionError: Assert failed: Alias should have two parts
. which alias is it referring to? the one in the select?That's HoneySQL 1.x?
Is that the whole query (data structure)? There seems to be a [
..`]` around the {:select ..}
-- is that intentional?
Yeah that's the data structure returned from sql/format
Let me paste the original query
sql/format
should return a vector with a SQL string followed by the various parameters which that isn't... the hash map looks like what I'd expect you to pass in to sql/format
but the vector around it seems odd.