This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-20
Channels
- # announcements (16)
- # babashka (104)
- # beginners (77)
- # bristol-clojurians (1)
- # calva (3)
- # chlorine-clover (50)
- # cider (19)
- # clojure (73)
- # clojure-australia (1)
- # clojure-europe (37)
- # clojure-france (3)
- # clojure-nl (3)
- # clojure-norway (13)
- # clojure-spec (21)
- # clojure-uk (79)
- # clojurescript (225)
- # conjure (102)
- # cursive (11)
- # datascript (1)
- # datomic (1)
- # defnpodcast (1)
- # events (3)
- # figwheel-main (2)
- # fulcro (49)
- # ghostwheel (10)
- # helix (1)
- # kaocha (17)
- # leiningen (10)
- # meander (1)
- # off-topic (26)
- # other-lisps (3)
- # pathom (5)
- # re-frame (40)
- # reagent (6)
- # reitit (33)
- # shadow-cljs (107)
- # testing (3)
- # tools-deps (68)
- # xtdb (16)
- # yada (3)
So, stupid questions, sorry. I have a hard time with a false argument. I don't understand what I missed, but:
dxpb-clj.db=> (crux/q (crux/db @node) {:find ['e] :where '[[e :pkgname a]] :args [{'a "st"}]})
#{[:st:x86_64:x86_64:cross:false] [:st:x86_64:x86_64-musl:cross:false]}
dxpb-clj.db=> (crux/q (crux/db @node) {:find ['e] :where '[[e :pkgname a]] :args [{'a "st" 'c false}]})
#{}
dxpb-clj.db=> (crux/q (crux/db @node) {:find ['e] :where '[[e :pkgname a]] :args [{'a "st" 'c true}]})
#{[:st:x86_64:x86_64:cross:false] [:st:x86_64:x86_64-musl:cross:false]}
is it your intention to not have 'c in any clauses? maybe the query response for unbound args is undefined or something
perhaps it's just a detail of how the query engine is implemented, what about other values for 'c
An interesting find, fortunately I can tell if 'c will be false from other variables not shown, so I don't need 'c, but it'd be nice to understand why my knowledge is broken.
But I am looking forward to the S3 aspect.... I do need to work with something that'll be in S3 and being able to use it through crux could make life much easier.
I'll be AFK for a few hours, but interested in docs on using that, and perhaps an answer to my initial query.
Morning all 🙂 Thanks @vaelatern for the report, have raised a card for this (https://github.com/juxt/crux/issues/882) and we'll take a look. At first glance it looks like a bug, but will dive in and have a look at what the query engine's doing Cheers @danvingo too 🙂