qpdb / mentat

A persistent, relational store inspired by Datomic and DataScript.
https://mentat.rs/
Apache License 2.0
52 stars 2 forks source link

[query] Extend `min` and `max` to transaction refs #249

Open gburd opened 4 years ago

gburd commented 4 years ago

It's principled that Mentat refuses to aggregate over general refs -- what meaning could sum(?e) have -- but not maximally helpful that I can't find the "latest" transaction ?tx directly. This ticket tracks trying to improve that, perhaps by adding latest and earliest synonyms for max, respectively min that apply just to transaction refs. Although I don't think we track whether a ref is a transaction ref throughout the query engine at this time, so it might be difficult to determine. But we have tx-before and tx-after, although I see no actual guarantee these aren't used for general refs.