Open kyleerhabor opened 3 years ago
IPersistentMap
was the wrong thing to have here, and it's been fixed, but it's not the cause of this problem. In this case, there appears to be a missing code path for adding a map to the sequence (unless it's to be saved as a map object, but this isn't what the API is supposed to do here).
The latest version will actually save this map as a "value" in the list, which isn't consistent either. I'll see if I can track down where this is happening in the entity writer code.
It seems that a transaction using the
+
append annotation will fail when a map is supplied. For reference, I'm using Asami2.2.1
and Clojure1.10.3.855
.As
FlatFile
does not implement theencapsulate-id
function forIPersistentMap
, this error seems like expected behavior (or temporary). https://github.com/threatgrid/asami/blob/d3b67520a46f8a98e244050aed09e44e577bcb8b/src/asami/durable/encoder.clj#L333-L341If it's the case, how can I append a map to a vector? I could use the
'
replacement annotation and set the vector as its previous items with the new one appended, but it seems inefficient and unintended.