datomic

Alex 2026-01-23T11:18:23.491049Z

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 …} .

👀 2
Joe Lane 2026-01-31T19:16:29.087799Z

It will be in the next release.

🙌 3
Dave Liepmann 2026-01-23T11:37:14.916339Z

also present in 1.0.7482

👍 1
Dave Liepmann 2026-01-23T12:34:23.201149Z

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!

Alex 2026-01-23T13:38:58.401429Z

Nice:rocket:

Alex 2026-01-25T08:25:11.449779Z

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:🫡

Sardtok 2026-01-25T09:37:57.761529Z

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.

Sardtok 2026-01-25T09:39:02.166919Z

They reproduced it, but I haven't heard anything since summer. 🤷

Joe Lane 2026-01-26T13:54:00.010889Z

The fix is planned for review today. Unclear if it will be in the next release or the following.

👍 2
🚀 2
Sardtok 2026-01-24T22:41:24.051029Z

Yes, I reported it a year ago. But it's not that hard to work around.

🙈 1
😅 1