Hi.
I noticed a bug in Datomic Pro v1.0.7387. When querying a scalar with io-context and :query-stats, if the result is nil, the response contains a double :ret: {:ret {:ret nil :io-stats …} :qury-stats …}. It should return {:ret nil :io-stats … :query-stats …} .
It will be in the next release.
also present in 1.0.7482
I ran this by the Datomic team. Though it's new to me, they're aware of the bug and hope to have it fixed in a future release. Thanks for reporting!
Nice:rocket:
Yeah, of course, but during first encounter it takes some time to figure out what is going on and disrupts focus on the task. Hah, year ago, I see:sweat_smile:🫡
I think they gave it a very low priority since it's "only stats". But as I was building stats into our analytics stack, it made for quite a bit of confusion in dev where stats were enabled by default.
They reproduced it, but I haven't heard anything since summer. 🤷
The fix is planned for review today. Unclear if it will be in the next release or the following.
Yes, I reported it a year ago. But it's not that hard to work around.