Problem with Projection + Composition in Collection
xsc opened this issue · comments
Yannick Scherer commented
Applying a projection to a seq whose elements are wrapped by one of claro's composition functions does not have the desired result, e.g.:
(claro.engine/run!!
(claro.projection/apply
[(claro.data.ops/then
(reify claro.data/Resolvable
(resolve! [_ _]
{:a 1}))
identity)]
[{:a claro.projection/leaf}]))
Instead of [{:a 1}]
, this produces:
java.lang.IllegalArgumentException: projection template is a map but value is not.
template: {:a <leaf>}
value: :claro.data.tree.utils/this-should-not-happen