This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-29
Channels
- # asami (1)
- # babashka (20)
- # beginners (3)
- # biff (1)
- # calva (5)
- # clj-kondo (68)
- # clojure (6)
- # clojure-europe (70)
- # clojure-losangeles (4)
- # clojurescript (1)
- # cursive (6)
- # exercism (1)
- # fulcro (3)
- # hyperfiddle (23)
- # introduce-yourself (1)
- # kaocha (1)
- # lambdaisland (8)
- # lsp (6)
- # off-topic (24)
- # pathom (24)
- # specter (1)
- # tools-deps (4)
- # xtdb (4)
Playing around with 2.0. This throws:
(def node (xt.node/start-node {}))
(xt/submit-tx node
[#_[:put :blocks {:xt/id 1 :text "foo" :status 1}]
[:put :blocks {:xt/id 1 :text "foo" :status :todo}]])
(xt/q node
'{:find [xt/*]
:where [($ :blocks [xt/*])]})
;; =>
; Execution error (IllegalArgumentException) at xt$eval33447$fn$reify__33449/readObject (REPL:57).
; No matching clause: status
Uncommenting the first :put
makes it work and return properly. Perhaps https://www.xtdb.com/reference/main/data-types are not expected to work at this point? 🙂 I think it's just an issue when using xt/*
.Keyword is an extension type that has been added fairly recently IIRC, so I'm not shocked to see this - it looks worthy of raising an issue though so feel free, or I'll pick it up over the next couple of days. Thanks for flagging and giving it a go 😃
👍 2